You are not logged in.
I want to use my Arch laptop which is connected via Wifi as an internet source for a wired box. Is this possible?
[laptop] <----- cat 5e -------> [windows machine]Last edited by graysky (2011-11-27 20:26:21)
Offline
Why not try as described here, it need to be a cross over cat5 though: https://wiki.archlinux.org/index.php/Internet_Share
Offline
Yep, you can use iptables and masquerading.
1) If your wifi card has an IP like 192.168.0.x, then create a wired connection with a static IP 192.168.10.x (for example.)
2) Add in rc.local (or wherever you want):
echo 1 >/proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 192.168.10.0/24 -o wlan0 -j MASQUERADE3) Configure your other PC with a static IP 192.168.10.y and 192.168.10.x as gateway.
There may be other ways to do that but it worked for my Xbox a couple of years ago
.
Edit: oh, you might need a hub or switch between the two machines though...
Last edited by stqn (2011-11-27 18:05:37)
Offline
Cool, thanks for the suggestions.
Offline
Indeed, unless the wired network interface card on your machines are Gigabit, you'll either need a crossover cable or a hub/switch.
Offline