pptp using tun0 to work
Philip M. Gollucci
pgollucci at p6m7g8.com
Thu Sep 8 13:28:58 PDT 2005
Hi,
I'm on FreeBSD 5.4-RELEASE i386
pptpclient-1.5.0 installed via pkg_add -r
GENERIC kernel for now.
cat /etc/ppp/ppp.conf
LSI:
set authname pgollucci
set authkey xxxxxxxxxxx
set timeout 0
set ifaddr 0 0
add w.x.y.z/24
alias enable yes
as root user:
route flush
route add default 192.168.0.1
pptp w.x.y.z LSI &
netstat -nf -finet
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.0.1 UGS 0 289 em0
10.0.0.1 10.0.0.174 UH 0 0 tun0
127.0.0.1 127.0.0.1 UH 0 230 lo0
192.168.0 link#1 UC 0 0 em0
192.168.0.1 00:0d:88:41:25:a1 UHLW 1 2903 em0 1074
FYI:
10.0.0.1 is the gateway/router there 10.0.0.174 is the IP dolled out me automatically.
so the first problem is that the second line is not a Gateway (G)
so
route add -inet 10.0.0.0/24 10.0.0.174
netstat -nr -finet
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.0.1 UGS 1 385 em0
10/24 10.0.0.174 UGS 0 0 em0
10.0.0.1 10.0.0.174 UH 0 0 tun0
127.0.0.1 127.0.0.1 UH 0 230 lo0
192.168.0 link#1 UC 0 0 em0
192.168.0.1 00:0d:88:41:25:a1 UHLW 1 2903 em0 963
Okay that worked, but its on the wrong interface em0 and not tun0 and even if its not, I can't
ping 10.0.0.1 or anything in the subnet.
The ROUTE(8) man page is AWFUL here which is very unusual for FreeBSD.
Could greatly benefit from some actual examples.
I'd contribute them, but I obviously don't quite get it yet.
Supposedly I'm supposed to use the -interface parameter but it doesn't work in this experience.
killall pptp
route flush
route add default 192.168.0.1
pptp w.x.y.z LSI &
route add -inet 10.0.0.0/24 -interface tun0 10.0.0.174
netstat -nr -finet
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.0.1 UGS 0 78 em0
10&0xa0000ae tun0 US 0 0 tun0
10.0.0.1 10.0.0.174 UH 0 0 tun0
127.0.0.1 127.0.0.1 UH 0 230 lo0
192.168.0 link#1 UC 0 0 em0
192.168.0.1 00:0d:88:41:25:a1 UHLW 1 2907 em0 1006
So that gave me a static not what I wanted I don't think and I still can't ping anything.
Here's a traceroute to a computer in it
traceroute 10.0.0.12
traceroute to 10.0.0.12 (10.0.0.12), 64 hops max, 40 byte packets
1 192.168.0.1 (192.168.0.1) 0.861 ms 0.717 ms 0.733 ms
While I'm at it ... What the heck does 10&0xa0000ae mean ?
Also, I've been told that going to other way, from the office-> me, I am pingable.
Any great ideas?
Thanks in advance
--
END
------------------------------------------------------------
What doesn't kill us can only make us stronger.
Nothing is impossible.
Philip M. Gollucci (pgollucci at p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
http://www.liquidityservicesinc.com
http://www.liquidation.com
http://www.uksurplus.com
http://www.govliquidation.com
http://www.gowholesale.com
More information about the freebsd-questions
mailing list