View previous topic :: View next topic |
Author |
Message |
watusimoto n00b
Joined: 18 Dec 2005 Posts: 40
|
Posted: Fri Sep 29, 2006 12:37 am Post subject: I need help with simple routing problem |
|
|
I'm trying to get things up and running with relakks. I've got my pptp connection going, but I can't figure out what to do with my routing to make it all work.
Code: |
lsmac ~ # ifconfig
eth0 Link encap:Ethernet HWaddr 00:08:20:C4:CB:3B
...
lo Link encap:Local Loopback
...
ppp0 Link encap:Point-to-Point Protocol <--- this is relakks
...
lsmac ~ # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
83.233.241.1 * 255.255.255.255 UH 0 0 0 ppp0
loopback lsmac 255.0.0.0 UG 0 0 0 lo
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
default * 0.0.0.0 U 0 0 0 eth0
lsmac ~ #
|
How do I get my routing to send all my traffic to relakks?
Any help would be greatly appreciated! |
|
Back to top |
|
|
vad3r Guru
Joined: 02 May 2004 Posts: 461 Location: Munich, Germany
|
Posted: Fri Sep 29, 2006 9:21 am Post subject: |
|
|
Remove your default route for eth0 and insert a new one for ppp0. After doing this all traffix that isn't processed by a earlier route is then sent to ppp0. |
|
Back to top |
|
|
watusimoto n00b
Joined: 18 Dec 2005 Posts: 40
|
Posted: Fri Sep 29, 2006 1:57 pm Post subject: |
|
|
That's what I suspected, but I can't figure out how to actually do that. Route has a very confusing syntax. Can you give me the command? |
|
Back to top |
|
|
nasher Tux's lil' helper
Joined: 21 Feb 2003 Posts: 125
|
|
Back to top |
|
|
watusimoto n00b
Joined: 18 Dec 2005 Posts: 40
|
Posted: Fri Sep 29, 2006 2:42 pm Post subject: |
|
|
I'm guessing I add a new route with
# route add default ppp0
When I do that, however, my machine freezes for a couple of minutes, and when it comes back, my pptp connection has been terminated, and the route is not added. Is that the correct syntax?
If so, perhaps my problem lies with my pptp connection. |
|
Back to top |
|
|
vad3r Guru
Joined: 02 May 2004 Posts: 461 Location: Munich, Germany
|
Posted: Fri Sep 29, 2006 2:57 pm Post subject: |
|
|
First remove the old route:
Code: | # route del default |
Now add the new one:
Code: | # route add default dev ppp0 |
|
|
Back to top |
|
|
bobert n00b
Joined: 26 Sep 2002 Posts: 65 Location: Malaysia
|
|
Back to top |
|
|
|