[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

Re: [Openvpn-users] change outgoing nat interface


  • Subject: Re: [Openvpn-users] change outgoing nat interface
  • From: "Pasquale Fiorillo" <sid.pasquale@xxxxxxxxx>
  • Date: Sat, 26 May 2007 16:08:03 +0200

i think that you can use dnat/snat instead masquerading:

  iptables -t nat -A POSTROUTING -s 10.197.187.0/24 -j SNAT --to x.x.x.x
  iptables -t nat -A PREROUTING -d x.x.x.x -j DNAT --to 10.197.187.0/24

x.x.x.x: public ip of eth1:7

sorry, i'm not sure about --to target in DNAT rule..
______________________
OpenVPN mailing lists
https://lists.sourceforge.net/lists/listinfo/openvpn-users