I'm using OpenIKED and after spawning a tunnel and acquiring a lease and addresses on…
- User
I'm using OpenIKED and after spawning a tunnel and acquiring a lease and addresses on tun0 device from responder i need somehow to establish a routes between pears. It's on linux. How to do this ??
- Assistant
To establish routes between peers over an IPsec VPN tunnel created with OpenIKED on a Linux system, you can use the
ipcommand to configure the necessary routes. Here's a step-by-step guide to help you set up the routes:-
Identify Tunnel Interface and Peers: After establishing the tunnel, ensure you know the name of the tunnel interface (e.g.,
tun0) and the IP addresses or subnets of the local and remote networks. -
Verify that the tunnel interface is up and has acquired the correct IP addresses. You can use the following command:
-
- User
my VPN subnet is 172.24.24.0/24 and this doesn't seems to work.... maybe i need to configure routing trafic to eth0 as well ?? as OpenVPN does it .
- Assistant
- User
with OpenIKED this doesn't seem to work.. after monitoring OpenVPN connectivity it does something similar to this : net_route_v4_best_gw query: dst 0.0.0.0 net_route_v4_best_gw result: via 192.168.1.1 dev eth0 ROUTE_GATEWAY 192.168.1.1/255.255.255.0 IFACE=eth0 HWADDR=8d:12:25:5d:f0:d9 TUN/TAP device tun0 opened net_iface_mtu_set: mtu 1500 for tun0 net_iface_up: set tun0 up net_addr_v4_add: 172.24.24.110/23 dev tun0 update-resolv-conf tun0 1500 0 172.24.24.110 255.255.254.0 init net_route_v4_add: 36.255.204.136/32 via 192.168.1.1 dev [NULL] table 0 metric -1 net_route_v4_add: 0.0.0.0/1 via 172.24.24.1 dev [NULL] table 0 metric -1 net_route_v4_add: 128.0.0.0/1 via 172.24.24.1 dev [NULL] table 0 metric -1
HOW should i build this tunel manually or with the script ?
- Assistant
- User
it is not working.. on OpenBSD IKED daemon uses lo1 interface and enc0 for its vnp... BUT what to do with Linux ?? I'm confused
- Assistant