[pptp-server] yay ! (sorta)

Systems Admin steve at iconz.co.nz
Mon Nov 22 05:37:32 CST 1999


Hiyas again :)

ok, i seem to have a tunnel up and running between my home network and the
rest of the net tunneled over a DSL link which is all masqeraded and such
forth

to do this i used the PoPToP server on a linux box at work and the pptp
client software running on the linux gateway at home, i have a static
route pointing to the PoPToP server so i can bring the link up and then
the routing entries pipeing my small subnet (/28 - sorry, it was late last
time i wrote to the list :) ) thru the tunnel, over the DSL link and out
the other end onto the net, this all works a right charm :)

now the problem is that when the gateway box running the pptp client
software tries to do anything it seems to want to use the ip address on
the ppp0 interface to announce stuff to the rest of the world, seeing as
these are set to 192.168.x.x addresses they hit the end of the tunnel then
drop into a bit bucket somewhere on the floor.

is there a way to force the linux box to use the eth0 address
(210.48.7.161) as the address it sends all traffic it generates down the
tunnel ? my routing table looks as such - am i missing something ? i
thought of removeing the default route and somehow (running routed or some
other form of routeing daemon) building its own routing table as it needs
it but dont know if this will work as i want it to.

anyway, my routing table is as follows..

Kernel IP routing table
Destination   Gateway       Genmask         Flags Metric Ref    Use Iface
210.48.7.161  0.0.0.0       255.255.255.255 UH    0      0        0 eth0
192.168.2.1   0.0.0.0       255.255.255.255 UH    0      0        0 ppp0
210.48.22.6   192.168.1.254 255.255.255.255 UGH   0      0        0 eth1
192.168.1.249 0.0.0.0       255.255.255.255 UH    0      0        0 eth1
210.48.7.160  0.0.0.0       255.255.255.240 U     0      0        0 eth0
192.168.1.0   0.0.0.0       255.255.255.0   U     0      0        0 eth1
127.0.0.0     0.0.0.0       255.0.0.0       U     0      0        0 lo
0.0.0.0       192.168.2.1   0.0.0.0         UG    0      0        0 ppp0

192.168.1.254 is the DSL box

192.168.1.249 is eth1 on the DSL side and used to carry the ppp link thru
to 210.48.22.6 which is the PoPToP server

210.48.7.161 is the linux boxes 'inside' address
the tunnel is between 192.168.3.1 and 192.168.2.1

if i ssh into 192.168.2.1 (the far end of the tunnel) it claims that i am
comming from 192.168.3.1 - which i gather is my problem :)

steve    pts/2    192.168.3.1      12:34am  0.00s  0.21s  0.10s  w
(output from a w)

if someone could shed some light on this it'd be great :)

--
Steve.





More information about the pptp-server mailing list