"Spencer" <(E-Mail Removed)> writes:
]Hello,
]My situation is that I am trying to connect my home linux system to a remote
]office. The remote office is using Microsoft RAS server, hence I need pppd
]to connect to it. Before I began I configured my home Windows XP system
]such that it connected to the remote office using the VPN, this worked
]therefore
]acknowledging the connection parameters I was using were correct. I then
]proceeded to install the latest version of pppd on my linux box, and
What is "the latest version"? The last stable release was 2.4.1. 2.4.2
is in development and may have bugs.
]configured
]the pppd config files as follows:
]/etc/ppp/options.pptp
]----------------------------------------------------------------------------
]---------------
]debug
]noauth
]crtscts
]lock
]nodetach
]lcp-echo-interval 30
]lcp-echo-failure 4
]idle 600
]noipx
]nobsdcomp
]nodeflate
]debug
]mppe-40
]mppe-128
]mppe-stateless
]-proxyarp
get rid of this proxyarp statement altogether. It is inappropriate for
pppd where it is the other end that is connected to the net. proxyarp
says "for the address x.x.x.x connected to this subnet of which it is a
valid ip address for this subnet, if a packet comes in, send that packet
to the ethernet address of this machine instead."
]----------------------------------------------------------------------------
]---------------
]NOTE: If I set 'proxyarp' instead of '-proxyarp' then I get the following
]error when
]I start pppd:
]Cannot determine ethernet address for proxy
]Im not sure if this is a problem....
proxyarp is inappropriate for your situation.
]/etc/ppp/tunnel
]----------------------------------------------------------------------------
]---------------
]pty "pptp xxx.xxx.150.2 --nolaunchpppd"
]name <username> remotename PPTP
]#require-mschap-v2
]# require-mppe-128
]file /etc/ppp/options.pptp
]ipparam tunnel
]----------------------------------------------------------------------------
]---------------
]NOTE: I have to comment out 'require-mschap-v2' and 'require-mppe-128'
]otherwise
]when I try and start pppd I get the following error:
]pppd: In file /etc/ppp/peers/tunnel: unrecognized option 'require-mschap-v2'
This was entirely inappropriate in teh first place unless you really
wanted the remote computer to authenticate itself to you. If you do want
it to, use the much more standard ordinary chap instead.
require-chap
however I suspect you do NOT want that.
]Is this a major problem?
]When I use the above configuration scripts and execute 'pppd call tunnel' to
]connect
]I notice that the system does seem to connect with the remote RAS server - I
]dont
]see any error messages, however I dont see a message stating connection
]established
]either... Provided below is the output that I receive from the pppd command
]when
]I attempt to connect:
Use the output in the file which is listed in /etc/syslog.conf for
daemon.* traffic. It has time stamps which can be useful.
Or put the line
daemon.*;local2.* /var/log/ppplog
into /etc/syslog.conf and then do
killall -1 syslogd
However your debug output shows you are connected fine.
<output deleted>
]The interesting thing is that when I reach this point (thinking I am
]connected) I contact
You are.
]the remote office and I asked the administrator whether he could acknowledge
]that I
]was actually connected, he said that I had successfully connected. The
]problem is that
]once connected I can not ping any of the servers. The only IP addresses
]that I can
]ping are:
]192.168.2.57 <---- my assigned IP address
]192.168.2.50 <---- the remote MS RAS server
That you can ping the remote machine shows you are connected. Tehre is
nothing wrong with your ppp connection. There is something wrong with
the routing.
However nowhere do I see the teh
defaultroute
option. If you want traffic to go through that connection you must tell
the routing for which addresses to use it. defaultroute says to use it
for all addresses not otherwise specifically routed.
]If I try pinging any other server IP address I get 'From 172.18.6.61
]Destination Host
]Unreachable'. I am completely confused because I have absolutely no idea
]where the
]IP address 172.18.6.61 is coming from, neither do the administrators at the
]remote
]office.
That is the ip address of your gateway on the ethernet system.
]I would have assummed that there may have been a problem with the
]config/routing
]at the remote office, but I ruled this out because when I connect using my
]Windows XP
]machine I am able to ping all the servers successfully.
No there is a problem with routing on your system.
]Im not sure if this will help, but I saw a post in another newsgroup that
]explained
]I could monitor the ping requests going out using the command 'tcpdump -i
]ppp0'. I
]invoked this command and then issued the ping command, however the tcpdump
]returned absolutely nothing - however when I monitored eth0 ''tcpdump -i
]eth0' I
]noticed all the ping requests were appearing here. Im not sure what this
]means....
It means that your routing is screwed up.
You have to tell the system which packets to send. Do you want all
addresses to go through the pppd connection? Use defaultroute, but kill
the default route on your ethernet first.
Do you just want some (eg your office subnet) ? Put explicit routing
requests into /etc/ppp/ip-up and kill them in /etc/ppp/ip-down
route add 111.222.333.0 -netmask 255.255.255.0 ppp0
in ip-up for example
and the same with delete instead in ip-down.
ppp is a point to point connection. It connects only two machines. If
you want other traffic to go down that pipe, you have to tell your
system explicitely.
]Thats all the information I have, I would be *exceptionally* grateful if
]someone could
]possibly help me on this issue.
]Best regards
]Spencer
]((E-Mail Removed))
|