Author Topic: Connection Sharing Guide  (Read 576 times)

Lord C

  • Member
  • **
  • Posts: 266
  • Kudos: 15
    • http://www.lordcalvin.co.uk/
Connection Sharing Guide
« 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
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] ]

Windows [n.]
A thirty-two bit extension and GUI shell to a sixteen bit patch to an eight bit operating system originally coded for a four bit microprocessor and sold by a two-bit company that can't stand one bit of competition.

011000110110000101101100011101100110100101101110
Linux user #348855

Lord C

  • Member
  • **
  • Posts: 266
  • Kudos: 15
    • http://www.lordcalvin.co.uk/
Connection Sharing Guide
« Reply #1 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.
Windows [n.]
A thirty-two bit extension and GUI shell to a sixteen bit patch to an eight bit operating system originally coded for a four bit microprocessor and sold by a two-bit company that can't stand one bit of competition.

011000110110000101101100011101100110100101101110
Linux user #348855

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
Connection Sharing Guide
« Reply #2 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??
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

Lord C

  • Member
  • **
  • Posts: 266
  • Kudos: 15
    • http://www.lordcalvin.co.uk/
Connection Sharing Guide
« Reply #3 on: 6 May 2003, 01:49 »
sleeping?
Windows [n.]
A thirty-two bit extension and GUI shell to a sixteen bit patch to an eight bit operating system originally coded for a four bit microprocessor and sold by a two-bit company that can't stand one bit of competition.

011000110110000101101100011101100110100101101110
Linux user #348855