Jump to content

Connection Sharing Guide


Guest BaDDaSS
 Share

Recommended Posts

Guest BaDDaSS

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...