Guest User

Untitled

a guest
Feb 23rd, 2011
490
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. ## Allow PPTP control connections from WAN
  2. iptables -t nat -A prerouting_rule -i $WAN -p tcp --dport 1723 -j ACCEPT
  3. iptables -A input_rule -i $WAN -p tcp --dport 1723 -j ACCEPT
  4.  
  5. ## Allow GRE protocol (used by PPTP data stream)
  6. iptables -A output_rule -p 47 -j ACCEPT
  7. iptables -A input_rule -p 47 -j ACCEPT
  8.  
  9. ### VPN Section
  10. iptables -A forwarding_rule -s 192.168.1.0/24 -d 192.168.1.0/24 -j ACCEPT
  11. iptables -A output_rule -o ppp+ -s 192.168.1.0/24 -d 192.168.1.0/24 -j ACCEPT
  12. iptables -A input_rule -i ppp+ -s 192.168.1.0/24 -d 192.168.1.0/24 -j ACCEPT
  13.  
  14. # allow VPN connections to get out WAN interface (to internet)
  15. iptables -A forwarding_rule -i ppp+ -o $WAN -j ACCEPT
Advertisement
Add Comment
Please, Sign In to add comment