RE: VPN setup problem - proxy arp I think

2003-07-10 Thread Brent Wiese
Set gateway=YES in rc.conf and reboot.

Then look into ipfw so you don't end up passing bogus traffic.


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Koroush Saraf
 Sent: Monday, June 30, 2003 7:09 PM
 To: [EMAIL PROTECTED]
 Subject: VPN setup problem - proxy arp I think
 
 
 
 
 
 Hi all,
 
 I read the setup at 
 http://www.blackh0le.net/articles/vpn-dun-howto.html to setup 
 my VPN. However, I'm having a problem which I think is 
 proxy-ARP not working.  I like to ask you to see if you know 
 what's going on.  When I ping 10.77.1.1 from windows XP 
 machine the packets get to the 10.77.1.1 machine, but they 
 don't have a return path to get back.  When I do ping the 
 windows machine from 10.77.1.1 I get: 
 ping: sendto: Host is down
 
 When I add static route to 10.77.1.1 the machines can talk to 
 each other. 
 (route add 10.77.1.50/32 10.77.1.2)
  But I don't think I need to setup a static route if Proxy ARP worked!
 
 I've included my config files in this email.  Please note 
 that the I get a message back saying [pptp1] no interface to 
 proxy arp on for 10.77.1.50  could this be my problem?  how 
 can I fix it? Thanks very much, ~koroush
 
 
 =
 
 
 I network looks as follows
 
 Freebsd 4.6
 IP 10.77.1.1/24
 |
 |
 fxp0:10.77.1.2/24
 Freebsd 4.8 (DELL2) (only 1 network card)
 ng0: 10.77.13
 |
 |
 Windows XP machine with tunnel.
 10.77.1.50
 
 
 
 ==
 Config files for Dell 2:
 DELL2# ifconfig -a
 fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
 inet 129.197.244.10 netmask 0xfff0 broadcast 
 129.197.244.15
 inet 10.0.0.249 netmask 0xff00 broadcast 10.0.0.255
 inet 10.77.1.2 netmask 0xff00 broadcast 10.77.1.255
 inet 10.77.2.2 netmask 0xff00 broadcast 10.77.2.255
 inet 10.77.3.2 netmask 0xff00 broadcast 10.77.3.255
 inet 10.77.4.2 netmask 0xff00 broadcast 10.77.4.255
 inet 10.77.5.2 netmask 0xff00 broadcast 10.77.5.255
 ether 00:07:e9:87:ca:4f
 media: Ethernet autoselect (100baseTX full-duplex)
 status: active
 lp0: flags=8810POINTOPOINT,SIMPLEX,MULTICAST mtu 1500
 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
 inet 127.0.0.1 netmask 0xff00
 lo1: flags=8008LOOPBACK,MULTICAST mtu 16384
 ppp0: flags=8010POINTOPOINT,MULTICAST mtu 1500
 sl0: flags=c010POINTOPOINT,LINK2,MULTICAST mtu 552
 faith0: flags=8002BROADCAST,MULTICAST mtu 1500
 ng0: 
 flags=88d1UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST mtu 1256
 inet 10.77.1.2 -- 10.77.1.50 netmask 0x
 ng1: flags=8890POINTOPOINT,NOARP,SIMPLEX,MULTICAST mtu 1500
 ng2: flags=8890POINTOPOINT,NOARP,SIMPLEX,MULTICAST mtu 1500
 ng3: flags=8890POINTOPOINT,NOARP,SIMPLEX,MULTICAST mtu 1500
 ng4: flags=8890POINTOPOINT,NOARP,SIMPLEX,MULTICAST mtu 1500
 
 ===
 
 DELL2# pwd
 /usr/local/etc/mpd
 DELL2# cat mpd.conf
 default:
 load client1
 load client2
 load client3
 load client4
 load client5
 
 pptp_common_settings:
 set link type pptp
 set pptp enable incoming
 set pptp disable originate
 set iface disable on-demand
 set iface enable proxy-arp
 #   set iface idle 1800
 set bundle enable multilink
 set link yes acfcomp protocomp
 set link no pap chap
 set link enable chap
 #   set link keep-alive 10 60
 set link mtu 1260
 set ipcp yes vjcomp
 #   set ipcp ranges 10.77.1.1/32 10.77.1.50/32
 #   set ipcp dns 10.77.1.1
 #   set ipcp nbns 10.77.1.1
 set bundle enable compression
 set ccp yes mppc
 set ccp yes mpp-e40
 #   set ccp yes mpp-e128
 set ccp yes mpp-stateless
 
 client1:
 new -i ng0 pptp1 pptp1
 set ipcp range 10.77.1.2/24 10.77.1.50/24
 load pptp_common_settings
 
 client2:
 new -i ng1 pptp2 pptp2
 set ipcp range 10.77.2.2/32 10.77.2.50/32
 load pptp_common_settings
 
 client3:
 new -i ng2 pptp3 pptp3
 set ipcp range 10.77.3.3/32 10.77.3.50/32
 load pptp_common_settings
 
 client4:
 new -i ng3 pptp4 pptp4
 set ipcp range 10.77.4.3/32 10.77.4.50/32
 load pptp_common_settings
 
 client5:
 new -i ng4 pptp5 pptp5
 set ipcp range 10.77.5.3/32 10.77.5.50/32
 load pptp_common_settings
 
 DELL2#
 =
 DELL2# cat mpd.secret
 demo1 demo1 10.77.1.50/24
 demo2 demo2 10.77.2.50/24
 demo3 demo3 10.77.3.50/24
 demo4 demo4 10.77.4.50/24
 demo5 demo5 10.77.5.50/24
 
 RUN TIME 
 
 DELL2# mdp default
 mdp: Command not found.
 DELL2# mpd default
 Multi-link PPP for FreeBSD, by Archie L. Cobbs.
 Based on iij-ppp, by Toshiharu OHNO.
 mpd: pid 281, version 3.13 ([EMAIL PROTECTED] 09:44 
 23-Jun-2003) [pptp1] ppp node is mpd281-pptp1
 mpd: local IP address for PPTP is 129.197.244.10
 [pptp1

VPN setup problem - proxy arp I think

2003-06-30 Thread Koroush Saraf



Hi all,

I read the setup at http://www.blackh0le.net/articles/vpn-dun-howto.html to setup my 
VPN.
However, I'm having a problem which I think is proxy-ARP not working.  I like to ask 
you to see if you know what's going on.  When I ping 10.77.1.1 from windows XP machine 
the packets get to the 10.77.1.1 machine, but they don't have a return path to get 
back.  When I do ping the windows machine from 10.77.1.1 I get: 
ping: sendto: Host is down

When I add static route to 10.77.1.1 the machines can talk to each other. 
(route add 10.77.1.50/32 10.77.1.2)
 But I don't think I need to setup a static route if Proxy ARP worked!

I've included my config files in this email.  Please note that the I get a message 
back saying [pptp1] no interface to proxy arp on for 10.77.1.50  could this be my 
problem?  how can I fix it?
Thanks very much,
~koroush


=


I network looks as follows

Freebsd 4.6
IP 10.77.1.1/24
|
|
fxp0:10.77.1.2/24
Freebsd 4.8 (DELL2) (only 1 network card)
ng0: 10.77.13
|
|
Windows XP machine with tunnel.
10.77.1.50



==
Config files for Dell 2:
DELL2# ifconfig -a
fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
inet 129.197.244.10 netmask 0xfff0 broadcast 129.197.244.15
inet 10.0.0.249 netmask 0xff00 broadcast 10.0.0.255
inet 10.77.1.2 netmask 0xff00 broadcast 10.77.1.255
inet 10.77.2.2 netmask 0xff00 broadcast 10.77.2.255
inet 10.77.3.2 netmask 0xff00 broadcast 10.77.3.255
inet 10.77.4.2 netmask 0xff00 broadcast 10.77.4.255
inet 10.77.5.2 netmask 0xff00 broadcast 10.77.5.255
ether 00:07:e9:87:ca:4f
media: Ethernet autoselect (100baseTX full-duplex)
status: active
lp0: flags=8810POINTOPOINT,SIMPLEX,MULTICAST mtu 1500
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
inet 127.0.0.1 netmask 0xff00
lo1: flags=8008LOOPBACK,MULTICAST mtu 16384
ppp0: flags=8010POINTOPOINT,MULTICAST mtu 1500
sl0: flags=c010POINTOPOINT,LINK2,MULTICAST mtu 552
faith0: flags=8002BROADCAST,MULTICAST mtu 1500
ng0: flags=88d1UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST mtu 1256
inet 10.77.1.2 -- 10.77.1.50 netmask 0x
ng1: flags=8890POINTOPOINT,NOARP,SIMPLEX,MULTICAST mtu 1500
ng2: flags=8890POINTOPOINT,NOARP,SIMPLEX,MULTICAST mtu 1500
ng3: flags=8890POINTOPOINT,NOARP,SIMPLEX,MULTICAST mtu 1500
ng4: flags=8890POINTOPOINT,NOARP,SIMPLEX,MULTICAST mtu 1500

===

DELL2# pwd
/usr/local/etc/mpd
DELL2# cat mpd.conf
default:
load client1
load client2
load client3
load client4
load client5

pptp_common_settings:
set link type pptp
set pptp enable incoming
set pptp disable originate
set iface disable on-demand
set iface enable proxy-arp
#   set iface idle 1800
set bundle enable multilink
set link yes acfcomp protocomp
set link no pap chap
set link enable chap
#   set link keep-alive 10 60
set link mtu 1260
set ipcp yes vjcomp
#   set ipcp ranges 10.77.1.1/32 10.77.1.50/32
#   set ipcp dns 10.77.1.1
#   set ipcp nbns 10.77.1.1
set bundle enable compression
set ccp yes mppc
set ccp yes mpp-e40
#   set ccp yes mpp-e128
set ccp yes mpp-stateless

client1:
new -i ng0 pptp1 pptp1
set ipcp range 10.77.1.2/24 10.77.1.50/24
load pptp_common_settings

client2:
new -i ng1 pptp2 pptp2
set ipcp range 10.77.2.2/32 10.77.2.50/32
load pptp_common_settings

client3:
new -i ng2 pptp3 pptp3
set ipcp range 10.77.3.3/32 10.77.3.50/32
load pptp_common_settings

client4:
new -i ng3 pptp4 pptp4
set ipcp range 10.77.4.3/32 10.77.4.50/32
load pptp_common_settings

client5:
new -i ng4 pptp5 pptp5
set ipcp range 10.77.5.3/32 10.77.5.50/32
load pptp_common_settings

DELL2#
=
DELL2# cat mpd.secret
demo1 demo1 10.77.1.50/24
demo2 demo2 10.77.2.50/24
demo3 demo3 10.77.3.50/24
demo4 demo4 10.77.4.50/24
demo5 demo5 10.77.5.50/24

RUN TIME 

DELL2# mdp default
mdp: Command not found.
DELL2# mpd default
Multi-link PPP for FreeBSD, by Archie L. Cobbs.
Based on iij-ppp, by Toshiharu OHNO.
mpd: pid 281, version 3.13 ([EMAIL PROTECTED] 09:44 23-Jun-2003)
[pptp1] ppp node is mpd281-pptp1
mpd: local IP address for PPTP is 129.197.244.10
[pptp1] using interface ng0
[pptp1] device type already set to pptp
[pptp2] ppp node is mpd281-pptp2
[pptp2] using interface ng1
[pptp2] device type already set to pptp
[pptp3] ppp node is mpd281-pptp3
[pptp3] using interface ng2
[pptp3] device type already set to pptp
[pptp4] ppp node is mpd281-pptp4
[pptp4] using interface ng3
[pptp4] device type already set to pptp
[pptp5] ppp node is mpd281-pptp5
[pptp5] using interface ng4
[pptp5] device type already set to pptp
[pptp5:pptp5] mpd: PPTP