Re: pptp using tun0 to work

2005-09-09 Thread Eric Schuele

Philip M. Gollucci wrote:

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 xxx
 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:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.0.1UGS 0  289em0
10.0.0.1   10.0.0.174 UH  00   tun0
127.0.0.1  127.0.0.1  UH  0  230lo0
192.168.0  link#1 UC  00em0
192.168.0.100:0d:88:41:25:a1  UHLW1 2903em0   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:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.0.1UGS 1  385em0
10/24  10.0.0.174 UGS 00em0
10.0.0.1   10.0.0.174 UH  00   tun0
127.0.0.1  127.0.0.1  UH  0  230lo0
192.168.0  link#1 UC  00em0
192.168.0.100:0d:88:41:25:a1  UHLW1 2903em0963

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:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.0.1UGS 0   78em0
100xaae   tun0   US  00   tun0
10.0.0.1   10.0.0.174 UH  00   tun0
127.0.0.1  127.0.0.1  UH  0  230lo0
192.168.0  link#1 UC  00em0
192.168.0.100:0d:88:41:25:a1  UHLW1 2907em0   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 100xaae mean ?

Also, I've been told that going to other way, from the office- me, I am 
pingable.


Any great ideas?


see if the following helps:
http://www.freebsd.org/cgi/getmsg.cgi?fetch=1290015+1295271+/usr/local/www/db/text/2005/freebsd-questions/20050904.freebsd-questions



Thanks in advance




--
Regards,
Eric
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


pptp using tun0 to work

2005-09-08 Thread Philip M. Gollucci

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 xxx
 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:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.0.1UGS 0  289em0
10.0.0.1   10.0.0.174 UH  00   tun0
127.0.0.1  127.0.0.1  UH  0  230lo0
192.168.0  link#1 UC  00em0
192.168.0.100:0d:88:41:25:a1  UHLW1 2903em0   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:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.0.1UGS 1  385em0
10/24  10.0.0.174 UGS 00em0
10.0.0.1   10.0.0.174 UH  00   tun0
127.0.0.1  127.0.0.1  UH  0  230lo0
192.168.0  link#1 UC  00em0
192.168.0.100:0d:88:41:25:a1  UHLW1 2903em0963

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:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.0.1UGS 0   78em0
100xaae   tun0   US  00   tun0
10.0.0.1   10.0.0.174 UH  00   tun0
127.0.0.1  127.0.0.1  UH  0  230lo0
192.168.0  link#1 UC  00em0
192.168.0.100:0d:88:41:25:a1  UHLW1 2907em0   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 100xaae 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 ([EMAIL PROTECTED]) 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

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]