daily pastebin goal
36%
SHARE
TWEET

Untitled

a guest Sep 15th, 2012 23 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. I use this rules:
  2. iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to 10.8.0.26:80
  3. iptables -A FORWARD -i eth0 -o tun0 -s 10.8.0.26 -j ACCEPT
  4. iptables -t nat -A POSTROUTING -s 10.8.0.26 -j MASQUERADE
  5.  
  6.  
  7. this is my rules:
  8. # iptables -t nat -vnL
  9. Chain PREROUTING (policy ACCEPT 1 packets, 40 bytes)
  10.  pkts bytes target     prot opt in     out     source               destination        
  11.     3   192 DNAT       tcp  --  eth0   *       0.0.0.0/0            0.0.0.0/0            tcp dpt:80 to:10.8.0.26:80
  12.  
  13. Chain INPUT (policy ACCEPT 1 packets, 40 bytes)
  14.  pkts bytes target     prot opt in     out     source               destination        
  15.  
  16. Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
  17.  pkts bytes target     prot opt in     out     source               destination        
  18.  
  19. Chain POSTROUTING (policy ACCEPT 3 packets, 192 bytes)
  20.  pkts bytes target     prot opt in     out     source               destination        
  21.     0     0 MASQUERADE  all  --  *      *       10.8.0.26            0.0.0.0/0
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top