# iptables -t nat -A PREROUTING -i eth0 -p tcp -dport 80 -j REDIRECT -to-port 3128 ![]() ![]() Next, I had added following rules to forward all http requests (coming to port 80) to the Squid server port 3128 using the iptables command # iptables -t nat -A PREROUTING -i eth1 -p tcp -dport 80 -j DNAT -to 192.168.1.1:3128 Here is the complete listing of nf for your reference (grep will remove all comments and sed will remove all empty lines, thanks to David Klein for quick hint ):
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |