You are not logged in.
I just setup OpenVPN using the Wiki and I see that I'm able to connect to my home computer from my laptop. However, I want to access the entire network, so when I type 192.168.1.1 in my browser, I'd be accessing my home network's router configuration page instead of the configuration page of the router I'm actually connected to. This is my first time setting up any VPN, so I'm not sure what I need to do. What do I need to configure to do this?
Last edited by gsingh93 (2013-12-02 19:54:53)
Offline
I do not have a platform on which to try this, but....
You need to change your default gateway so as not to point to the router to which you are attached, but rather to the router on your home network. You need to set a route that specifies the tunnel through which you are connecting rather than the physical interface.
My machine is a route set as thus:
ewaller$@$odin ~ 1001 %ip route
default via 192.168.1.1 dev wlan0 metric 303
192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.2 metric 303
192.168.1.2 via 127.0.0.1 dev lo metric 303
ewaller$@$odin ~ 1002 %By default, it sends traffic over wlan0 to 192.168.1.1. You will want to change that to point through your tunnel.
Could you post the output of ip link whilst you have a VPN established?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
gulshan@arch:~$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: wlo1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
link/ether 4c:80:93:9f:81:c0 brd ff:ff:ff:ff:ff:ff
3: eno1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
link/ether 08:2e:5f:82:89:95 brd ff:ff:ff:ff:ff:ff
5: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 100
link/noneRunning ip route shows that my default is 192.168.1.1. How do I change that to 10.8.0.1 (the home network gateway)? I couldn't figure it out from man ip-route.
Offline