I'm running poptop vpn server on my linux box. When I establish a
client VPN session from outside, I can access my LAN resources but
cannot get to the internet while on VPN. I'm not very proficient with
routing; do I need to add a route?
Router (Internet Gateway) 192.168.1.254
VPN linux server at 192.168.1.1 / 255.255.255.0
[root@hq ~]# tail /etc/pptpd.conf
# 4. If you give a single localIP, that's ok - all local IPs will
# be set to the given one. You MUST still give at least one
remote
# IP for each simultaneous client.
#
# (Recommended)
localip 192.168.1.1
remoteip 192.168.1.20-25
# or
#localip 192.168.0.234-238,192.168.0.245
#remoteip 192.168.1.234-238,192.168.1.245
[root@hq ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.1.20 * 255.255.255.255 UH 0 0 0
ppp0
192.168.1.0 * 255.255.255.0 U 0 0 0
eth0
169.254.0.0 * 255.255.0.0 U 0 0 0
eth0
default 192.168.1.254 0.0.0.0 UG 0 0 0
eth0
[root@hq ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:14:22:78:93:91
inet addr:192.168.1.1 Bcast:192.168.1.255
Mask:255.255.255.0
inet6 addr: fe80::214:22ff:fe78:9391/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:759527 errors:0 dropped:0 overruns:0 frame:0
TX packets:307654 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:86626225 (82.6 MiB) TX bytes:237476772 (226.4 MiB)
Base address:0xccc0 Memory:fe4e0000-fe500000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4432035 errors:0 dropped:0 overruns:0 frame:0
TX packets:4432035 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1332519581 (1.2 GiB) TX bytes:1332519581 (1.2 GiB)
ppp0 Link encap:Point-to-Point Protocol
inet addr:192.168.1.1 P-t-P:192.168.1.20
Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1396 Metric:1
RX packets:1862 errors:0 dropped:0 overruns:0 frame:0
TX packets:1768 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:240912 (235.2 KiB) TX bytes:622611 (608.0 KiB)
|