Hi guys,
I have some doubts setting an OpenVPN server, and I'm traveling to China this friday! It's not vital, but I'd be happy to have a full connection for once. My setup:
Cable Modem with dinamic IP - Wifi/LAN router on 192.168.0.1, with dyndns - Laptop-server on 192.168.0.102 (wired connection on eth0), running Kubuntu and OpenVPN (server at 10.8.0.1).
As of now, the OpenVPN client on my phone connects perfectly fine through 3G to the router, and the connection is accepted. The problem starts when I want to navigate using the home connection.
I type this line in the server.conf:
And the traffic starts crashing. The console starts throwing:
.
I saw people commenting about setting up iptables to do so, but I'm not sure how to do so. I'm afraid also this setup will be erased once the laptop reboots. Could somebody show me how do I set up iptables in order to redirect all the traffic from 10.8.0.1 to eth0 as 192.168.0.102 and the other way around?
Thanks a lot!
Jon
I have some doubts setting an OpenVPN server, and I'm traveling to China this friday! It's not vital, but I'd be happy to have a full connection for once. My setup:
Cable Modem with dinamic IP - Wifi/LAN router on 192.168.0.1, with dyndns - Laptop-server on 192.168.0.102 (wired connection on eth0), running Kubuntu and OpenVPN (server at 10.8.0.1).
As of now, the OpenVPN client on my phone connects perfectly fine through 3G to the router, and the connection is accepted. The problem starts when I want to navigate using the home connection.
I type this line in the server.conf:
push "redirect-gateway def1 bypass-dhcp"
Mon Feb 4 10:54:29 2013 us=105335 client1/203.145.92.114:37888 MULTI: bad source address from client [10.192.56.221], packet dropped
I saw people commenting about setting up iptables to do so, but I'm not sure how to do so. I'm afraid also this setup will be erased once the laptop reboots. Could somebody show me how do I set up iptables in order to redirect all the traffic from 10.8.0.1 to eth0 as 192.168.0.102 and the other way around?
Thanks a lot!
Jon
Comment