> czesc
> mam dziwny problem z sdi na slackware 9.0
mianowicie kontrolki na terminalu
> sygnalizuja połonczenie z internetem =
natomiast
pingi na serweze nie ida w
> swiat czyli nie ma internetu, serwer
konfigurowałem juz dziesiatki razy z
> innych opisów i zawsze mam ten sam =
bład
wykluczam uszkodzenie sprzetu
> poniewarz na pld i win2000serwer wszystko =
smiga.
Moja konfiguracja serwera
> zaczerpnieta ze strony =
www.slackware.com.pl
wyglada nastepujaco"
> /etc/resolv.conf
> domain tpnet.pl
> search tpnet.pl
> nameserver 194.204.159.1
> nameserver 194.204.152.34
> /etc/sysconfig/network-scripts/chat-ppp0
> ''
> /etc/ppp/pap-secrets
> login hasło IP
> xxxxx * xxxxxxxx xxx.xx.xx.xxx
> połonczenie uruchamiam poleceniem
> pppd /dev/ttyS0 115200 modem defaultroute =
lock
noauth persist user xxxxx
Moja konfiguracja:
1) /etc/ppp/options
=
persist
2) /etc/ppp/pap-secrets
LOGIN * =
HASLO
3) /etc/rc.d/rc.masq
=
#!/bin/sh
echo =
"1" > /proc/sys/net/ipv4/ip_forward
=
/usr/sbin/iptables -F -t nat
/usr/sbin/iptables -X -t =
nat
/usr/sbin/iptables -F -t =
filter
/usr/sbin/iptables -X -t =
filter
/usr/sbin/iptables -t filter -P =
FORWARD DROP
/usr/sbin/iptables -t filter -A =
FORWARD -s
192.168.0.0/255.255.255.0 -d 0/0 -j ACCEPT
/usr/sbin/iptables -t filter -A =
FORWARD -s
0/0 -d 192.168.0.0/255.255.255.0 -j ACCEPT
/usr/sbin/iptables -t nat -A =
POSTROUTING -s
192.168.0.2 -d 0/0 -j MASQUERADE
/usr/sbin/iptables -t nat -A =
POSTROUTING -s
192.168.0.3 -d 0/0 -j MASQUERADE
/usr/sbin/iptables -t nat -A =
POSTROUTING -s
192.168.0.4 -d 0/0 -j MASQUERADE
/sbin/modprobe ip_nat_ftp
/sbin/modprobe ip_nat_irc
4) Odpowiedni wpis do /etc/rc.d/rc.local
if [ -x =
/sbin/sdi ]; then
echo "Start =
SDI..."
sdi
fi
if [ -x /etc/rc.d/rc.masq ]; =
then
/etc/rc.d/rc.masq
fi
5) /sbin/sdi
pppd =
115200 /dev/ttyS0 persist
defaultroute lock noauth crtscts asyncmap 0 =
user
LOGIN
To u mnie na slakach 8.0 , 8.1 , 9.0 dziala bez
zarzutu. Mam polaczenie na serwerze i routing na =
3
adresy IP wewnatrz sieci. I o ile sie =
orientuje
wszystkie potrzebne opcje do polaczenia byly =
juz
wkompilowane w kernela.
> przypuszczałem ze to wina jadra i =
skomplilowałem
sobie kernela 2.4.20
> zaznaczyłem w nim jako moduł opcje
> - PPP (point-to-point protocol) support
> - PPP support for async serial ports
> po komplilacji slackware mi smiga lepiej niz =
na
poprzednim jajku ale
> internetu jak nie było tak nie ma.
O ile mi wiadomo do korzystania z modemowych
polaczen potrzebne sa jeszcze:
- PPP Deflate Compression
- PPP BSD-Cinoress compression
Pozdrawiam
Jacek M.
---
Checked by AVG anti-virus system
(http://www.grisoft.com).
Version: 6.0.528 / Virus Database: 324 - =
Date: 2003-10-16