Amit's Blog
  • Home
  • Videos
  • All Posts
  • Tags
  • About Me
Subscribe
Tagged

iptables

A collection of 2 posts

firewall

Redirect or forward ports in iptables

Redirect or Forward Ports using Iptables Port Redirection: iptables -t nat -A PREROUTING -i -p tcp --dport -j REDIRECT --to-port or iptables -t nat -I PREROUTING --src ip/mask --dst -p tcp --dport 80 -j Redirect --to-port

Port Forwarding: iptables -A PREROUTING -t nat -i -p tcp --dport 80 -j

  • amit
amit Sep 15, 2011 • 1 min read
iptables

Iptables Neat Tips

Separate Log File For Iptables : vi /etc/syslog.conf -------------------------------------------------------------------------------- Append to the file : kern.warning /var/log/iptables.log Restart syslog daemon. Now you can block any ip and log it to the file iptables -A INPUT -s x.x.x.x -m limit --limit 5/m --limit-burst 7

  • amit
amit Feb 6, 2011 • 1 min read
Amit's Blog © 2023
Powered by Ghost