Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iptables and openvpn



On 08/12/2009 12:21 PM, markw-FJ05HQ0HCKaWd6l5hS35sQ at public.gmane.org wrote:
> So, the routing works. The 192.168.x.x machines are going to the gateway
> correctly. The gateway is sending the ping over openvpn correctly. The
> openvpn connection is working correctly. The final step of getting the
> packet from the server mack to the machine is failing.
> 
> What am I missing?

The S(ource)NAT on any packets going out the tunneled interface.

Assuming tun0 is your vpn pipe on B that hooks up to A:
 iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE


Matt






BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org