You are not logged in.
Ok so I have the following hardware to work with:
1. A wireless access point that I don't have admin access to. It's a free wireless hotspot that feeds internet to my laptop.
2. A laptop with a wireless adapter and ethernet card running Arch.
3. An OpenBSD server with no usb or wireless, just ethernet.
4. A normal LAN switch.
5. Ethernet cables
What I want is to set up a LAN with these two machines, and to share the internet from my laptop through the switch with the OpenBSD server (or any machine that I may connect in the future).
How would I set this thing up? Any ideas, hints or step by step HOWTOs are welcomed
Archlinux | ratpoison + evilwm | urxvtc | tmux
Offline
Alter /etc/sysctl.conf and set this to 1:
net.ipv4.ip_forward=1
Then install iptables
pacman -S iptables
And configure a rule set something like:
iptables -P FORWARD ACCEPT
iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
/etc/rc.d/iptables save
Configure the OpenBSD server to use your laptop as it's default gateway and that should be the absolute bare minimum to get you going. You can then look at installing a DNS server (dnsmasq or bind), tighter firewall rules etc.
Last edited by fukawi2 (2009-10-24 02:50:58)
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Thanks a lot, will give this a go. This will have no effect on my laptop's browsing experience though, right? I can still use that to browse, it doesn't just redirect the connection?
Archlinux | ratpoison + evilwm | urxvtc | tmux
Offline
This will have no effect on my laptop's browsing experience though, right?
Correct.
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline