Leased Line & Ipchains
Ioannou
ioannou at florina.line.gr
Fri Nov 19 10:13:48 EET 1999
Geia se olous.
Elpizw kapoios na me katatopisei
Exw ena linux server (suse 6.2) pou einai syndedemenos monima me to
internet mesw ethernet me kanoniki IP, se auto ton server exw syndesei
ena leased line modem me to opoio syndew sthn allh plevra ena linux
(suse 6.0) mhxanima pali.(ypopsin oti to allo mhxanhma exei fake IP's,
to idio kai h leased line)
To problhma mou proekipse ota allaxa kai ebala apo suse 6.0 to suse 6.2
sto kentriko mhxanima, apo tote den mporw na bgw sto internet apo to
mhxanhma me thn leased line. Sto 6.2 epidei exei allaxh o pyrhnas
xrisimopoiei ipchains anti ipfwadm kai etsi exw kolisei
Auto einai to script pou douleva palia, kai ola doulevan roloi
###### ttys0.options ######
rtscts
mru 1500
mtu 1500
passive
192.168.254.1:192.168.254.2
-chap
modem
defaultroute
-pap
persist
#### Leased line UP #####
#!/bin/bash
#/usr/bin/sleep 30
( /usr/sbin/pppd /dev/ttyS0 38400 debug) &
####### IPFWADM Rules ######
#!/bin/bash
#
/sbin/route add -net 192.168.255.0 gw 192.168.254.1 netmask
255.255.255.0
# Clear all
#
/sbin/ipfwadm -F -p deny
/sbin/ipfwadm -F -a m -S 192.168.255.0/24 -D 0.0.0.0/0
/sbin/ipfwadm -F -a m -S 192.168.254.0/24 -D 0.0.0.0/0
Mporei kaneis na me boh8hsei na metatrepsw ta parapanw na doulepsoun me
IPCHAINS h oti allo xriazete
######## auto ekana egw alla dystixws den doulevei #######
#!/bin/bash
/sbin/route add -net 192.168.255.0 gw 192.168.254.1 netmask
255.255.255.0
#
# Clear all
#
#/sbin/ipchains -P forward DENY
/sbin/ipchains -P forward MASQ
/sbin/ipchains -A forward -j MASQ -s 192.168.255.0/24 -d 0.0.0.0/0
/sbin/ipchains -A forward -j MASQ -s 192.168.254.0/24 -d 0.0.0.0/0
#######
otan kanw ipchains -L apo to apotelesma apo 'ti katalabenw den mou
epitrepei na perasoun DNS request pros to e3w diktyo
auta gia tin wra
euxaristw
C.Ioannou
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/archives
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================
More information about the Linux-greek-users
mailing list