Skip to content

Instantly share code, notes, and snippets.

@radixvinni
Created May 16, 2011 10:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save radixvinni/974178 to your computer and use it in GitHub Desktop.
Save radixvinni/974178 to your computer and use it in GitHub Desktop.
iptables add rule to route port 3899(radmin) to 10.0.1.196
iptables -t nat -A PREROUTING -s 195.230.96.32 -d 91.206.57.66 -i eth0 -p tcp -m tcp --dport 3899 -j DNAT --to-destination 10.0.1.196:3899
iptables -t filter -I RH-Firewall-1-INPUT 10 -d 10.0.1.222 -p tcp -m tcp --dport 80 -j ACCEPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment