Advertisement
Guest User

Untitled

a guest
Mar 26th, 2015
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. ifconfig at0 192.168.2.1 netmask 255.255.255.0
  2. ifconfig at0 mtu 1400
  3. route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.2.1
  4. echo 1 > /proc/sys/net/ipv4/ip_forward
  5. iptables -t nat -A PREROUTING -p udp -j DNAT --to 192.168.1.1
  6. iptables -P FORWARD ACCEPT
  7. iptables --append FORWARD --in-interface at0 -j ACCEPT
  8. iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
  9. iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 10000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement