Unix Blog

Thursday, June 2, 2011

iptables

List iptables rulesiptables -t nat --line-numbers -n -L

Delete iptables rule
iptables -t nat -D PREROUTING 1

Ports redirection
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
Traffic to port 80 will get redirected to port 8080

posted by Jayanthi Krishnamurthy @ 5:58 PM   0 Comments

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home

Newer›  ‹Older

About Me

Name: Jayanthi Krishnamurthy

View my complete profile

Posts

  • iptables

Older Posts Newer Posts

Archives

Subscribe to
Posts [Atom]