Written by Dr. Daniel Arbel darbel@tx.technion.ac.il
ver
1.0 Aug. 2000
ver 1.0.1 Sep. 2000 - corrections for pap
authentication and stoping sessions.
The introduction describes the mechanism of windows installation. The reason is that Bezeq technicians have NO idea about any other environment and can provide no clue about how to connect a Linux box. They will not describe the details of the connection in technical language because of lack of knowledge. Diging in Bezeq installation and reading this introduction will help you make the conclusions needed when connecting your Linux box.
I describe here the details of Orkit equipment. If you have ALcatel gear and it looks a bit different, try to use intuition... (I did not have the privelage to use Alcatel ADSL ..).
You should have no problem in installing a NIC for ADSL. Reduce the MTU to
1452 (ifconfig eth0 10.200.1.1/8 mtu 1452 )
use a kernel with ppp
support and latest pppd (in my mandrake 7.1 , kernel 2.2.17 the version is
2.3.11).
the equivivalent of Microsoft VPN adapter is just the pptp .. get it http://cag.lcs.mit.edu/~cananian/Projects/PPTP/ the current version is 1.02
since pptp does not receive all the options as a command line parameter, you have to enter the RELAY_PPP1 (see the introduction) into the source file (is anyone out there willing to enhance this pptp s/w ?) : change line 212 in pptp_ctrl.c to:
hton16(PPTP_WINDOW), 0, 0, 0, {"RELAY_PPP1"}, {0}
compile. Read the pptp docs to see that you have pppd in the proper place.
The authentication method is forced by the server. In order to cover both
optons (pap and chap) create 2 identical files:
edit /etc/ppp/chap-secrets
and /etc/ppp/pap-secrets to include proper lines like:
"guest@OActcom"
"10.0.0.138 RELAY_PPP1" "Bezeq"
and finaly, start a call:
./pptp 10.0.0.138 debug user guest@OActcom remotename "10.0.0.138 RELAY_PPP1" defaultroute netmask 255.0.0.0 mtu 1452 noauth
If everything goes well you should be connected, and your networking will look something like that:
# netstat -r -n Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 10.200.1.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth0 213.8.120.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 213.8.120.1 0.0.0.0 UG 0 0 0 ppp0# ifconfig -a eth0 Link encap:Ethernet HWaddr 00:50:BF:0E:F6:A8 inet addr:10.200.1.1 Bcast:10.255.255.255 Mask:255.0.0.0 UP BROADCAST RUNNING MULTICAST MTU:1452 Metric:1 RX packets:51825 errors:0 dropped:0 overruns:0 frame:0 TX packets:56376 errors:0 dropped:0 overruns:0 carrier:0 collisions:109 txqueuelen:100 Interrupt:9 Base address:0xb000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:3924 Metric:1 RX packets:61 errors:0 dropped:0 overruns:0 frame:0 TX packets:61 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 ppp0 Link encap:Point-to-Point Protocol inet addr:213.8.120.98 P-t-P:213.8.120.1 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1452 Metric:1 RX packets:49753 errors:0 dropped:0 overruns:0 frame:0 TX packets:26973 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:10Stoping a session should be done as follows:
- down the ppp0:
ifconfig ppp0 down- kill the pptp process:
killall pptp
Document HTML-ized by Tzafrir Cohen