Compatible Support Forums: How to share internet connection between 2 PC's

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to share internet connection between 2 PC's

#1 User is offline   PsychoactivE 

  • stranger
  • Group: Members
  • Posts: 1
  • Joined: 15-March 04

Posted 15 March 2004 - 03:32 PM

Hi. I have an Internet connection configured in Linux (Redhat 9.0) and I would like to know how I can share that internet connection with another local computer that uses Windows XP. I have already done this for Windows XP (using "bridge"), but now I don't know how I do that in Linux. Any help is appreciated!
0

#2 User is offline   CorpoSemAlma 

  • stranger
  • Group: Members
  • Posts: 4
  • Joined: 05-March 04

Posted 15 March 2004 - 08:41 PM

What kind of connection do you have?
If you already navigating try this:

copy everything inside a file...
change the " " with your data
and run it..

Here it goes....

!#/bin/sh

LAN_IP_NET="your lan ip range (maybe 192.168.1.0/24)"
LAN_NIC="the internal network interface (eth0 or eth1)"
OUT_NIC="external network interface (eth0, eth1 or ppp0 and so on)"

iptables -t nat -A POSTROUTING -s $LAN_IP_NET -o $OUT_NIC -j MASQUERADE
iptables -A FORWARD -j ACCEPT -i $LAN_NIC -s $LAN_IP_NET
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT


You should be navigating on XP by now....
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users