Nowe posty

Autor Wątek: Problem z udosępnionym internetem  (Przeczytany 7164 razy)

Xxx12

  • Gość
Problem z udosępnionym internetem
« dnia: 2007-08-19, 02:56:04 »
Udostępniłem łącze z jednego komputera na drugi wg tej instrukcji, problem polega na tym że internet na drugim komputerze strony internetowe ładują sie i ładują (bardzo długo, często się w ogóle nie załadują), gg niby chodzi (logowanie troszke trwa), o pobieraniu plików z internetu można zapomnieć, na 1 kompie internet chodzi OK, net udostępniałem również z xp i jest to samo (muli internet na 2 komp.),
Może dostawca internetu ma jakieś zabezpieczenia przed dzieleniem łącza?

Co i jak mam zrobić żeby internet na obu komputerach chodził dobrze??

1 Komputer (serwer):
Slackware 12 / Win XP pro sp2
eth0, eth1 - zintegrowana nvidia nforce network controller gigabit (połączona z 2 komputerem)
eth2 - 10/100 pci (internet)

2 Komputer (klient):
Win XP pro sp2
eth2 - gigabit (połączona z 1 komputerem)

pasta

  • Gość
Problem z udosępnionym internetem
« Odpowiedź #1 dnia: 2007-09-09, 21:44:58 »
Pokaż jak skonfigurowałeś iptables na serwerze.

Offline

  • Users
  • Guru
  • *****
  • Wiadomości: 825
    • Zobacz profil
Problem z udosępnionym internetem
« Odpowiedź #2 dnia: 2007-09-27, 21:11:08 »
iptables -L
iptables -L -t nat
Poprosimy o wynik tych dwu poleceń.

Mariusz

Xxx12

  • Gość
Problem z udosępnionym internetem
« Odpowiedź #3 dnia: 2007-10-12, 11:03:13 »
root@server:~# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  192.168.9.0/24       anywhere
ACCEPT     all  --  anywhere             192.168.9.0/24

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
root@server:~# iptables -L -t nat
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
MASQUERADE  all  --  192.168.9.0/24       anywhere
MASQUERADE  all  --  anywhere             anywhere

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
plik /etc/rc.d/rc.masq
#FIREWALL
echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -F -t nat
iptables -X -t nat
iptables -F -t filter
iptables -X -t filter
#Reguły dot. maskowania
iptables -t nat -A POSTROUTING -s 192.168.9.0/255.255.255.0 -d 0/0 -j MASQUERADE
#Poniej zakresy IP naley dostosować do swojego serwera DHCP
iptables -t filter -A FORWARD -s 192.168.9.0/255.255.255.0 -d 0/0 -j ACCEPT
iptables -t filter -A FORWARD -s 0/0 -d 192.168.9.0/255.255.255.0 -j ACCEPT
iptables -t nat -A POSTROUTING -o eth2 -j MASQUERADE
#przekazywanie pakietów ip
echo 1 > /proc/sys/net/ipv4/ip_forward

Offline

  • Users
  • Guru
  • *****
  • Wiadomości: 825
    • Zobacz profil
Problem z udosępnionym internetem
« Odpowiedź #4 dnia: 2007-10-12, 11:08:22 »
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -F
iptables -F -t nat
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
eth1 - interface zew.

M.