Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I need help with simple routing problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
watusimoto
n00b
n00b


Joined: 18 Dec 2005
Posts: 40

PostPosted: Fri Sep 29, 2006 12:37 am    Post subject: I need help with simple routing problem Reply with quote

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
View user's profile Send private message
vad3r
Guru
Guru


Joined: 02 May 2004
Posts: 461
Location: Munich, Germany

PostPosted: Fri Sep 29, 2006 9:21 am    Post subject: Reply with quote

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
View user's profile Send private message
watusimoto
n00b
n00b


Joined: 18 Dec 2005
Posts: 40

PostPosted: Fri Sep 29, 2006 1:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
nasher
Tux's lil' helper
Tux's lil' helper


Joined: 21 Feb 2003
Posts: 125

PostPosted: Fri Sep 29, 2006 2:08 pm    Post subject: Reply with quote

try,

http://www.die.net/doc/linux/man/man8/route.8.html
http://www.cpqlinux.com/routes.html
Back to top
View user's profile Send private message
watusimoto
n00b
n00b


Joined: 18 Dec 2005
Posts: 40

PostPosted: Fri Sep 29, 2006 2:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
vad3r
Guru
Guru


Joined: 02 May 2004
Posts: 461
Location: Munich, Germany

PostPosted: Fri Sep 29, 2006 2:57 pm    Post subject: Reply with quote

First remove the old route:

Code:
# route del default


Now add the new one:

Code:
# route add default dev ppp0
Back to top
View user's profile Send private message
bobert
n00b
n00b


Joined: 26 Sep 2002
Posts: 65
Location: Malaysia

PostPosted: Sun Oct 08, 2006 8:34 am    Post subject: Reply with quote

Hey guys i wrote a short guide that might help you.

https://forums.gentoo.org/viewtopic-t-505412-start-0-postdays-0-postorder-asc-highlight-.html

Hope it helps
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum