You are not logged in.
Pages: 1
My Arch box is connected to the net by ADSL usb modem and I share it with windows-powered computer like this:
eth0 Link encap:Ethernet HWaddr 00:30:4F:41:1E:ED
inet addr:192.168.0.1 Bcast:192.168.0.1 Mask:255.255.255.0
inet6 addr: fe80::230:4fff:fe41:1eed/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:161 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:16176 (15.7 Kb) TX bytes:528 (528.0 b)
Interrupt:18 Base address:0xef00
and the script I run is:
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -F -t nat
iptables -X -t nat
iptables -F -t filter
iptables -X -t filter
iptables -t filter -P FORWARD DROP
iptables -t filter -A FORWARD -s 192.168.0.1/255.255.255.0 -d 0/0 -j ACCEPT
iptables -t filter -A FORWARD -s 0/0 -d 192.168.0.1/255.255.255.0 -j ACCEPT
iptables -t nat -A POSTROUTING -s 192.168.0.0/16 -d 0/0 -j MASQUERADE
iptables -I FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
The other system (the one with WIndows) can acces the internet (ip: 192.168.0.2 mask 255.255.255.0 gateway 192.168.0.1), it can download stuff at maximal speed but somehow internet browsing is really slow (either on IE or FireFox). Loading of google.com takes ~25 secs.
Offline
Pages: 1