|
|
Steve Bergman wrote, On 12/8/2006 2:47 PM: > I have a machine with a "real" eth0 interface of 192.168.1.1. > > Over this interface, I have an openvpn tunnel 10.6.0.1<->10.6.0.2, with > a route set to the 192.168.6.0/24 network on the other side. > > When cups sends a print job to a machine on the 192.168.6.0/24 network, > the packets have a source ip of 10.6.0.1. I need for them to have a > source ip if 192.168.1.1 to be accepted. I see no options to make cups > use a particular interface when *sending* print jobs, and would really > prefer that *all* tunneled packets from this machine have a source IP of > 192.168.1.1. > > Is there anything I can do in the openvpn config to accomplish this? A couple of my simple P2P tunnels just re-use addresses. For example: Server (192.168.1.1 is eth0) --> Remote (192.168.6.1 is eth0) So on the server I just ifconfig 192.168.1.1 192.168.6.1 and the reverse on the remote. Another option is using iptables SNAT. - Kris Jordan - ______________________ OpenVPN mailing lists https://lists.sourceforge.net/lists/listinfo/openvpn-users Warning: require_once(../../../archive_common.php) [function.require-once]: failed to open stream: No such file or directory in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2006-12/msg00077.html on line 204 Fatal error: require_once() [function.require]: Failed opening required '../../../archive_common.php' (include_path='/usr/local/lib/php') in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2006-12/msg00077.html on line 204 |