
Using SimplyMepis 3.3.1: I have to access work using a Cisco VPN connection. I have installed "vpnc" and "tun". I can establish a VPN connection and get an IP address assigned. ifconfig tun0 tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:10.255.255.1 P-t-P:10.255.255.1 Mask:255.255.255.255 I then added a route with the work IP address range: route add -net 10.83.0.0 netmask 255.255.255.0 dev tun0 However, I cannot access the servers at all. What have I done wrong and/or missed? Thanks for your help Felix

felix wrote:
Using SimplyMepis 3.3.1:
I have to access work using a Cisco VPN connection. I have installed "vpnc" and "tun". I can establish a VPN connection and get an IP address assigned.
ifconfig tun0 tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:10.255.255.1 P-t-P:10.255.255.1 Mask:255.255.255.255
This doesn't seem correct. It's made a tunnel connection from the RFC1918 address 10.255.255.1 to the same address. These addresses should, I beleive, be your external IP and the remote IP.
I then added a route with the work IP address range: route add -net 10.83.0.0 netmask 255.255.255.0 dev tun0
Once the above is fixed that should be fine, assuming your network is 10.83.0.0 -> 10.83.0.255 Daniel

Thanks Daniel for the hint. How can I change this? I just logged in using Windows. The log shows that is also adds another IP address to the watch list. I suspect that is the one I need in the "inet address" line. The Virtual Adapter was enabled: IP=10.255.255.1/255.0.0.0 DNS=10.83.71.17,10.83.71.18 WINS=0.0.0.0,0.0.0.0 Domain= Split DNS Names= 24 11:46:08.812 08/13/05 Sev=Info/4 CM/0x63100038 Address watch added for 192.168.1.8. Current address(es): 10.255.255.1, 192.168.1.8. Also when I use "vpnc-disconnect" it tells me no "vpnc" is running, which would support what you said. Thanks Felix On Sat, 13 Aug 2005 10:00, Daniel Lawson wrote:
felix wrote:
Using SimplyMepis 3.3.1:
I have to access work using a Cisco VPN connection. I have installed "vpnc" and "tun". I can establish a VPN connection and get an IP address assigned.
ifconfig tun0 tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:10.255.255.1 P-t-P:10.255.255.1 Mask:255.255.255.255
This doesn't seem correct. It's made a tunnel connection from the RFC1918 address 10.255.255.1 to the same address.
These addresses should, I beleive, be your external IP and the remote IP.
I then added a route with the work IP address range: route add -net 10.83.0.0 netmask 255.255.255.0 dev tun0
Once the above is fixed that should be fine, assuming your network is 10.83.0.0 -> 10.83.0.255
Daniel
_______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug

The solution was the routing. I had to add the IP address shown in the log from the Windows log in (192.etc) to the routing table. Regards Felix On Sat, 13 Aug 2005 10:00, Daniel Lawson wrote:
felix wrote:
Using SimplyMepis 3.3.1:
I have to access work using a Cisco VPN connection. I have installed "vpnc" and "tun". I can establish a VPN connection and get an IP address assigned.
ifconfig tun0 tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:10.255.255.1 P-t-P:10.255.255.1 Mask:255.255.255.255
This doesn't seem correct. It's made a tunnel connection from the RFC1918 address 10.255.255.1 to the same address.
These addresses should, I beleive, be your external IP and the remote IP.
I then added a route with the work IP address range: route add -net 10.83.0.0 netmask 255.255.255.0 dev tun0
Once the above is fixed that should be fine, assuming your network is 10.83.0.0 -> 10.83.0.255
Daniel
_______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug
participants (2)
-
Daniel Lawson
-
felix