[ A-l-m-i-r @ 03.09.2007. 15:53 ] @
Pozdrav. Imam masinu pII od koje želim da napravim router i da sa tog rutera podijelim internet na 1 windows mašinu.Na tu PII sam nabacio slackware 12. Mreža ide ovako accees point 192.168.0.1 ->(utp)->etho[192.168.0.2] | RUTER | eth1[192.168.1.1] -> (utp) na mrežnu od windosa [192.168.1.2] ROUTER - ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up -ifconfig eth0 192.168.1.1 netmask 255.255.255.0 up /etc/rc.d/rc.firewall Citat: #!/bin/sh # enable forwarding, tell kernel we don't have static IP echo 1 > /proc/sys/net/ipv4/ip_forward echo 1 > /proc/sys/net/ipv4/ip_dynaddr # flush chains and delete user-defined chains iptables -F iptables -X iptables -t nat -F iptables -t nat -X # Forward all outgoing traffic from internal network iptables -A FORWARD -s 192.168.1.0/255.255.255.0 -j ACCEPT # Forward only related incoming traffic iptables -A FORWARD -d 192.168.1.0/255.255.255.0 -m state --state ESTABLISHED,RELATED -j ACCEPT # masquerading # One can masquerade using incoming interface name (-i eth1) or using source address (-s) # This is right way (tm) iptables -t nat -A POSTROUTING -s 192.168.1.0/255.255.255.0 -j MASQUERADE WINDOWS ip 192.168.1.2 mask 255.255.255.0 gateway 192.168.1.1 Što se tiče mreže ona radi, preko ssh se spojim na ruter i kreiram pppoe konekciju i ruter se spoji na internet pingam sa ruter google i sve radi, ali na windowsu još nema interneta. Gdje griješim |