View previous topic :: View next topic |
Author |
Message |
phill15 n00b
Joined: 09 Feb 2008 Posts: 6
|
Posted: Sat Feb 09, 2008 10:30 pm Post subject: routing traffic over vpn |
|
|
Hi i've just created a vpn using ppp over ssh, i can ping the vpn server from client and vice versa but what i want to do is be able to route my client internet traffic over the vpn, currently its using the default local network gateway |
|
Back to top |
|
|
papahuhn l33t
Joined: 06 Sep 2004 Posts: 626
|
Posted: Sat Feb 09, 2008 10:57 pm Post subject: |
|
|
You need to set a host route to the other end of the vpn tunnel (the address which was given to ssh), remove the current default route and set a new default route via the ppp interface of the tunnel. _________________ Death by snoo-snoo! |
|
Back to top |
|
|
phill15 n00b
Joined: 09 Feb 2008 Posts: 6
|
Posted: Sat Feb 09, 2008 11:43 pm Post subject: |
|
|
hey thanks for the reply i've tried doing that but it doesn't work for some reason (probably because im doing it wrong), im doing what you said like first i did route add -host <server ip> eth0 and then i did route add default gw <vpn server ip> ppp0, but nothing happened, what actually happened was i couldn't communicate anymore on my network and the internet. |
|
Back to top |
|
|
phill15 n00b
Joined: 09 Feb 2008 Posts: 6
|
Posted: Sun Feb 10, 2008 1:30 am Post subject: |
|
|
btw will i have to ip masqeurade on the vpn server? |
|
Back to top |
|
|
phill15 n00b
Joined: 09 Feb 2008 Posts: 6
|
Posted: Sun Feb 10, 2008 1:38 am Post subject: |
|
|
its ok i figured it out |
|
Back to top |
|
|
phill15 n00b
Joined: 09 Feb 2008 Posts: 6
|
Posted: Sun Feb 10, 2008 2:01 am Post subject: |
|
|
actually i've still got a problem, i can route certain traffic through the vpn link by doing route add google.com gw <vpn ip> ppp0, what this is saying is route all going to google.com to the vpn ip, but i can't figure out a way to route all traffic through the vpn |
|
Back to top |
|
|
phill15 n00b
Joined: 09 Feb 2008 Posts: 6
|
Posted: Sun Feb 10, 2008 3:43 am Post subject: |
|
|
its ok now i've finally got it all working |
|
Back to top |
|
|
papahuhn l33t
Joined: 06 Sep 2004 Posts: 626
|
Posted: Sat Aug 08, 2009 4:43 pm Post subject: |
|
|
sirlark wrote: | I've found that if I remove the default route, then my ssh/ppp tunnel goes down, because there's no route for the ssh connection over the 'normal' network link. |
papahuhn wrote: | You need to set a host route to the other end of the vpn tunnel |
_________________ Death by snoo-snoo! |
|
Back to top |
|
|
sirlark Guru
Joined: 25 Oct 2004 Posts: 306 Location: Limerick, Ireland
|
Posted: Sat Aug 08, 2009 4:57 pm Post subject: |
|
|
Hi phil15,
I'm stuck basically where you were at first posting. Could you please post your solution. I've found that if I remove the default route, then my ssh/ppp tunnel goes down, because there's no route for the ssh connection over the 'normal' network link.
Thanks _________________ Adopt an unanswered post today |
|
Back to top |
|
|
|