Advertisement
Guest User

Untitled

a guest
Jul 11th, 2010
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. echo 1 > /proc/sys/net/ipv4/ip_forward
  2.  
  3. # clear
  4. /usr/sbin/iptables -F
  5. /usr/sbin/iptables -t nat -F
  6. /usr/sbin/iptables -t mangle -F
  7. /usr/sbin/iptables -X
  8.  
  9. /usr/sbin/iptables -t nat -A POSTROUTING -o dsl0 -j MASQUERADE
  10. #/usr/sbin/iptables -A FORWARD -i dsl0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
  11. /usr/sbin/iptables -A FORWARD -i dsl0 -o eth1 -j ACCEPT
  12. /usr/sbin/iptables -A FORWARD -i eth1 -o dsl0 -j ACCEPT
  13. /usr/sbin/iptables -t nat -I PREROUTING -i eth1 -p udp --dport 53 -j DNAT --to-destination 62.148.128.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement