June 21st, 2004, 06:53 AM
Windows Through Linux
I have a question about networking a Windows box through a Linux box to allow the Windows pc to access the internet. I myself use Linux but my fiance does a lot of graphics work so she needs her Windows pc, she currently has it offline but I would like to get it online via my Linux box. My pc connects direcly to the internet via a cable modem. Can I get her pc online by installing a second nic card in mine and having mine act as a router?
[shadow]Prepare ship for ludicrous speed![/shadow]
June 21st, 2004, 07:15 AM
You could, but it would be cheaper (or at least the same cost) to just buy a router. I paid about $49.95 for a D-Link wireless router ( 4 port by the way) and I am sure that a regular wired router would be much cheaper. And you get the extra protection of a hardware firewall that way also.
\"Life should NOT be a journey to the grave with the intention of arriving safely in an attractive and well preserved body, but rather to skid in sideways, Champagne in one hand - strawberries in the other, body thoroughly used up, totally worn out and screaming WOO HOO - What a Ride!\"
June 21st, 2004, 09:04 AM
If you don't want to listen to the old Pre-Dirt Cowboys wise words,
if your linux box is allready online all the time, add a nic
and add these lines to a runlevel..
if [ -f /proc/sys/net/ipv4/ip_forward ]; then
echo "Activating IPv4 packet forwarding."
echo 1 > /proc/sys/net/ipv4/ip_forward
echo -n "iptables "
iptables --table nat --flush
iptables --table nat --delete-chain
echo -n "iptables "
iptables --table nat --append POSTROUTING --out-interface $WAN -j MASQUERADE
iptables --append FORWARD --in-interface $LAN -j ACCEPT
set the LAN and WAN to your lan and wan devices (ifconfig)
this is a realyy simple setup and won't do much good if your fiance wants to use P2P aplications, if you want a more advanced firewall ask about it, or search for it here on AO !
ASCII stupid question, get a stupid ANSI.
When in Russia, pet a PETSCII.
Get your ass over to SLAYRadio
the best station for C64 Remixes !