source ip address of all traffic via openvpn tunnel
Posted: Sat Feb 19, 2011 2:13 pm
Hi,
I have routed ptp tunnel (openvpn 2.1, tun interfaces). Everything works fine. But any traffic going via this tunnel have source ip address of one of the point of openvpn tunnel. It's possible to have unchanged source ip address of traffic via this tunnel?
Topology:
[LAN1]--------[VPN_BOX1]------------{internet}----------[VPN_BOX2]-----------[LAN2]
VPN_BOX1:
eth0: 192.168.1.1/24
tun0: 10.90.0.1
VPN_BOX2:
eth0: 192.168.2.1/24
tun0: 10.90.0.2
If I ping from PC in LAN1 any PC in LAN2, and on PC in LAN2 run tcpdump, then I get any packets have source ip addres 10.90.0.1.
I have routed ptp tunnel (openvpn 2.1, tun interfaces). Everything works fine. But any traffic going via this tunnel have source ip address of one of the point of openvpn tunnel. It's possible to have unchanged source ip address of traffic via this tunnel?
Topology:
[LAN1]--------[VPN_BOX1]------------{internet}----------[VPN_BOX2]-----------[LAN2]
VPN_BOX1:
eth0: 192.168.1.1/24
tun0: 10.90.0.1
VPN_BOX2:
eth0: 192.168.2.1/24
tun0: 10.90.0.2
If I ping from PC in LAN1 any PC in LAN2, and on PC in LAN2 run tcpdump, then I get any packets have source ip addres 10.90.0.1.