Prev: The Linux experience - ugly, bad, and good - Re: Random Hesitations: The new threat to windummy productivity in the office
Next: USB discs
From: Anthony Campbell on 15 Apr 2010 10:16 On 2010-04-15, chris <ithinkiam(a)gmail.com> wrote: > > You don't say which desktop you're using, but I find Kvpnc very easy to > use. I suppose you could use vpnc directly, but I don't have much > knowledge of that. > I seem to have got it working partially but still no joy. Ifconfig -a shows eth0 Link encap:Ethernet HWaddr 00:24:81:48:79:88 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:16 eth1 Link encap:Ethernet HWaddr 00:21:00:b8:06:8e inet addr:192.168.0.8 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::221:ff:feb8:68e/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:605490 errors:0 dropped:0 overruns:0 frame:114564 TX packets:412922 errors:4 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:832093529 (793.5 MiB) TX bytes:39268298 (37.4 MiB) Interrupt:17 eth0:avahi Link encap:Ethernet HWaddr 00:24:81:48:79:88 inet addr:169.254.7.139 Bcast:169.254.255.255 Mask:255.255.0.0 UP BROADCAST MULTICAST MTU:1500 Metric:1 Interrupt:16 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:46 errors:0 dropped:0 overruns:0 frame:0 TX packets:46 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2660 (2.5 KiB) TX bytes:2660 (2.5 KiB) pan0 Link encap:Ethernet HWaddr 2e:4d:01:26:b6:8c BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) ppp0 Link encap:Point-to-Point Protocol inet addr:10.83.0.17 P-t-P:10.83.0.1 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1396 Metric:1 RX packets:68 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:2351 (2.2 KiB) TX bytes:80 (80.0 B) Question: how do I make it use the ppp0 link instead of eth1? Anthony -- Anthony Campbell - ac(a)acampbell.org.uk Microsoft-free zone - Using Debian GNU/Linux http://www.acampbell.org.uk (blog, book reviews, and sceptical articles)
From: alexd on 15 Apr 2010 14:15 On 15/04/10 15:16, Anthony Campbell wrote: > I seem to have got it working partially but still no joy. Ifconfig -a > shows > ppp0 Link encap:Point-to-Point Protocol > inet addr:10.83.0.17 P-t-P:10.83.0.1 Mask:255.255.255.255 > UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1396 Metric:1 > RX packets:68 errors:0 dropped:0 overruns:0 frame:0 > TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:3 > RX bytes:2351 (2.2 KiB) TX bytes:80 (80.0 B) > > > Question: how do I make it use the ppp0 link instead of eth1? 'ip route' is the command you're after, but you'll need to know what network(s) you're trying to get to before you can do anything meaningful with that command. -- <http://ale.cx/> (AIM:troffasky) (UnSoEsNpEaTm(a)ale.cx) 19:13:29 up 6 days, 8:25, 2 users, load average: 0.03, 0.14, 0.16 It is better to have been wasted and then sober than to never have been wasted at all
From: Anthony Campbell on 15 Apr 2010 18:02 On 2010-04-15, alexd <troffasky(a)hotmail.com> wrote: > On 15/04/10 15:16, Anthony Campbell wrote: > >> I seem to have got it working partially but still no joy. Ifconfig -a >> shows > >> ppp0 Link encap:Point-to-Point Protocol >> inet addr:10.83.0.17 P-t-P:10.83.0.1 Mask:255.255.255.255 >> UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1396 Metric:1 >> RX packets:68 errors:0 dropped:0 overruns:0 frame:0 >> TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 >> collisions:0 txqueuelen:3 >> RX bytes:2351 (2.2 KiB) TX bytes:80 (80.0 B) >> >> >> Question: how do I make it use the ppp0 link instead of eth1? > > 'ip route' is the command you're after, but you'll need to know what > network(s) you're trying to get to before you can do anything meaningful > with that command. > Thanks for this pointer. I know little about ip route but tried the following: sd route add -net 10.83.0.10 netmask 255.255.255.255 dev ppp0 and then I found that route gave: Destination Gateway Genmask Flags Metric Ref Use Iface albanetuk.guru- www.routerlogin 255.255.255.255 UGH 0 0 0 eth1 10.83.0.1 * 255.255.255.255 UH 0 0 0 ppp0 10.83.0.10 * 255.255.255.255 UH 0 0 0 ppp0 192.168.0.0 * 255.255.255.0 U 0 0 0 eth1 link-local * 255.255.0.0 U 0 0 0 eth0 link-local * 255.255.0.0 U 1000 0 0 eth1 default www.routerlogin 0.0.0.0 UG 0 0 0 eth1 default * 0.0.0.0 U 1000 0 0 eth0 Does this look hopeful? Is there a way to make ppp0 the default? Anthony -- Anthony Campbell - ac(a)acampbell.org.uk Microsoft-free zone - Using Debian GNU/Linux http://www.acampbell.org.uk (blog, book reviews, and sceptical articles)
From: alexd on 16 Apr 2010 17:10 On 15/04/10 23:02, Anthony Campbell wrote: > Thanks for this pointer. I know little about ip route but tried the > following: > > sd route add -net 10.83.0.10 netmask 255.255.255.255 dev ppp0 > > and then I found that route gave: > > Destination Gateway Genmask Flags Metric Ref Use Iface > albanetuk.guru- www.routerlogin 255.255.255.255 UGH 0 0 0 eth1 > 10.83.0.1 * 255.255.255.255 UH 0 0 0 ppp0 > 10.83.0.10 * 255.255.255.255 UH 0 0 0 ppp0 > 192.168.0.0 * 255.255.255.0 U 0 0 0 eth1 > link-local * 255.255.0.0 U 0 0 0 eth0 > link-local * 255.255.0.0 U 1000 0 0 eth1 > default www.routerlogin 0.0.0.0 UG 0 0 0 eth1 > default * 0.0.0.0 U 1000 0 0 eth0 > > Does this look hopeful? Is there a way to make ppp0 the default? This is the kind of thing that the VPN client software [at least, every one I've ever used] will take care of for you, but, route add default gw ppp0, perhaps? Before doing that I would check that /32 route you added works. -- <http://ale.cx/> (AIM:troffasky) (UnSoEsNpEaTm(a)ale.cx) 22:07:23 up 7 days, 11:19, 2 users, load average: 0.16, 0.23, 0.18 It is better to have been wasted and then sober than to never have been wasted at all
From: Anthony Campbell on 17 Apr 2010 03:37
On 2010-04-16, alexd <troffasky(a)hotmail.com> wrote: > On 15/04/10 23:02, Anthony Campbell wrote: > >> Thanks for this pointer. I know little about ip route but tried the >> following: >> >> sd route add -net 10.83.0.10 netmask 255.255.255.255 dev ppp0 >> >> and then I found that route gave: >> >> Destination Gateway Genmask Flags Metric Ref Use Iface >> albanetuk.guru- www.routerlogin 255.255.255.255 UGH 0 0 0 eth1 >> 10.83.0.1 * 255.255.255.255 UH 0 0 0 ppp0 >> 10.83.0.10 * 255.255.255.255 UH 0 0 0 ppp0 >> 192.168.0.0 * 255.255.255.0 U 0 0 0 eth1 >> link-local * 255.255.0.0 U 0 0 0 eth0 >> link-local * 255.255.0.0 U 1000 0 0 eth1 >> default www.routerlogin 0.0.0.0 UG 0 0 0 eth1 >> default * 0.0.0.0 U 1000 0 0 eth0 >> >> Does this look hopeful? Is there a way to make ppp0 the default? I've been in contact with the admin people for the server I'm trying to connect to. They confirm that the above albanetuk.guru ... is part of their chain, so I'm almost there. They think the problem is that I am using the local gateway instead of the remote gateway. I'm not sure what to do about that (something to do with /etc/network/interfaces?) but I'll try the route command you give here. I really can't understand why it's so difficult to do this. It's not supposed to be. Anthony > > This is the kind of thing that the VPN client software [at least, every > one I've ever used] will take care of for you, but, route add default gw > ppp0, perhaps? Before doing that I would check that /32 route you added > works. > -- Anthony Campbell - ac(a)acampbell.org.uk Microsoft-free zone - Using Debian GNU/Linux http://www.acampbell.org.uk - sample my ebooks at http://www.smashwords.com/profile/view/acampbell |