|
lug-bg: multisession ppp+ipx
- Subject: lug-bg: multisession ppp+ipx
- From: "Boril Yonchev" <boril@xxxxxxxx>
- Date: Fri, 5 Nov 2004 11:02:19 +0200
Zdraveite grupa,
Imam slednoto problemche iskam da pusna VPN prez koito da prokaram IPX za da
moje da se vrazvat po nego kam novelskia ni sarvar, okaza se che IP
conections na novella neshto kucat I se spichat sled kato prekarat 4K, taka
chez a IP vrazka s nego ne iskam da govorim :)
Ta pusnal sam pptp s ppp+mppe+ipx + ipxripd, poslednite 2 se naloji da gi
fixvam poneje v 2.6 kernelite sa premestili /proc/net/ipx_interface v
/proc/net/ipx/interface I ten e otkrivaha che kernela poddarja ipx
Do tuk dobre ipx-a mi tragna prez ppp-to obache se okaza che kogato imam
vdignata 1 ppp konekcia na sledvashtata ne i puska ipx poneje mu se dublira
ipx network,node adresa s tozi na parvata sesia.
Nastroikite deto gi polzvam sa slednite
######## /etc/ppp/pptp.options
name pptpd
chapms-strip-domain
auth
refuse-pap
refuse-chap
refuse-mschap
refuse-eap
require-mschap-v2
require-mppe-128
ms-dns 195.177.248.62
ms-dns 195.177.248.62
defaultroute
proxyarp
ipx
#ipx-network 12345678
#ipx-node 1:0
ipx-routing 2
#ipx-router-name Linux_router
ipxcp-accept-network
ipxcp-accept-remote
ipxcp-accept-local
mru 1400
mtu 1400
novj
novjccomp
nopcomp
noaccomp
nobsdcomp
#####################
################# /etc/ppp/ipx-up
#!/bin/sh
#
# This script is run by the pppd after the link is established and
# the IPX layer is brought up.
#
# This script is called with the following arguments:
# Arg Name Example
# $1 Interface name ppp0
# $2 The tty ttyS1
# $3 The link speed 38400
# $4 IPX network number
# $5 Local IPX node address
# $6 Remote IPX node address
# $7 Local IPX routing protocol
# $8 Remote IPX routing protocol
# $9 Local IPX router name
# $10 Remote IPX router name
# $11 Optional ipparam parameter
# hardy's hack
echo "if /sbin/ifconfig $1 |grep -c IPX >/dev/null ; then true ; else "
>/etc/ppp/ipx-wa
echo "/usr/bin/ipx_interface add $1 EtherII $4 $5" >> /etc/ppp/ipx-wa
echo fi >> /etc/ppp/ipx-wa
# hardy's hack
killall -HUP ipxd
##############################
Tva se nadiavah da spasi rabotata samo chez a vtorata sesia ppp-to izobshto
ne stiga do nego, a pri parvata si bachka i bez nego
Zaradi nego v ip-up dobaviah i
if [ -r /etc/ppp/ipx-wa ]; then
/bin/bash /etc/ppp/ipx-wa
killall -HUP ipxd
rm /etc/ppp/ipx-wa
fi
Ta niakoi ima li ideia kak dinamichno moga da generiram
ipx-network
ipx-node
v pptp.options niakade chetoh che gi vzema ako sa ustanoveni pri klienta no
mi se iska da si kara s dedaultnite 000000000 pri klienta a da gi setva
sarvara
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|
|
|