Stop Microsoft

Operating Systems => Linux and UNIX => Topic started by: Lord C on 2 May 2003, 04:42

Title: Connection Sharing Guide
Post by: Lord C on 2 May 2003, 04:42
Here's my guide to sharing an internet connection.
This guide presumes ...
Host = Linux
Client = Windoze
eth0 = Internet Connection
eth1 = LAN

su
echo "1" > /proc/sys/net/ipv4/ip_forward
service shorewall stop && chkconfig --del shorewall

Download http://www.linuxkungfu.org/ipkungfu/ipkungfu-0.4.0.tgz (http://IPKUNGFU)
cd ~/ipkungfu
su
./install

pico /etc/ipkungfu/custom.conf
On the line $IPTABLES -A OUTPUT -p udp --dport 2002 -j $LOG_CMD "SLAPPER! rm -f /tmp/*bugtraq*" remove the -j (shown in bold.

pico /etc/ipkungfu/ipkungfu.conf
make sure you have defined the correct ethernet devices
EXT_NET="eth0"
INT_NET="eth1"
Also, set Masquerading and IP_forwarding to 1

run 'ipkungfu'
and check 'iptables -L' to verify.

Now point your DNS on the windows machine to the results you get in
grep nameserver /etc/resolv.conf

and your gateway to your internal IP
ifconfig eth1

(Dont forget to make your Windoze internal IP within the 'LOCAL_NET' range)

Restart your Windoze machine (ROFL)
And your network should be working   :D

[ May 01, 2003: Message edited by: BaDDaSS[Mandrake] ]

Title: Connection Sharing Guide
Post by: Lord C on 2 May 2003, 04:45
PS: This was intended for Mandrake, you do not need to disable Shorewall if you are not running mandrake.
Title: Connection Sharing Guide
Post by: Master of Reality on 3 May 2003, 07:45
Nice... a bit basic.... my networking involves writing several page long custom firewall, setting up proxy server with access control lists, and setting up a IDS.
This should be put inthe MES faq. Where the fuck is the quirk??
Title: Connection Sharing Guide
Post by: Lord C on 6 May 2003, 01:49
sleeping?