Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Network Troublshooting => General Networking Support in Linux => Topic started by: amnyarku on April 11, 2005, 09:06:48 AM

Title: sharing internet connection without a proxy server
Post by: amnyarku on April 11, 2005, 09:06:48 AM
Pls,

I have install fedora core 2 and connected its to the internet and it working perfectly but my problem is, I want to share the connection with my client computer without using a proxy server. Can somebody help me out?

Thank You

Kwame Amoah.
Title: sharing internet connection without a proxy server
Post by: yzq on April 12, 2005, 02:49:32 PM
i think it,NO WAY!!!!!
 :oops:  :oops:  :oops:

if fact i hope there is a way to achieve it!!
Title: sharing internet connection without a proxy server
Post by: yzq on April 12, 2005, 02:56:12 PM
i think it,NO WAY!!!!!
 :oops:  :oops:  :oops:

if fact i hope there is a way to achieve it!!
Title: sharing internet connection without a proxy server
Post by: gauravbajaj on April 12, 2005, 05:07:19 PM
hi there

Ya i think, there is no otherway  to do the same.., YMZ said true.. but may be another knows it well.
Gaurav
Title: sharing internet connection without a proxy server
Post by: gauravbajaj on April 12, 2005, 05:07:44 PM
hi there

Ya i think, there is no otherway  to do the same.., YMZ said true.. but may be another knows it well.
Gaurav
Title: sharing internet connection without a proxy server
Post by: anil_garg5 on April 13, 2005, 12:05:21 PM
If you do not want to use proxy server, use Internet sharing through NAT.
It will solve your problem.
Title: sharing internet connection without a proxy server
Post by: Ricky on April 13, 2005, 12:39:32 PM
And you can do that either by using some software like "FireStarter" or configuring iptables .
See Internet Sharing in Linux (http://www.linuxsolved.com/forums/ftopic115.html) .
Title: Re: sharing internet connection without a proxy server
Post by: technocp on August 06, 2010, 06:14:33 AM
Pls,

I have install fedora core 2 and connected its to the internet and it working perfectly but my problem is, I want to share the connection with my client computer without using a proxy server. Can somebody help me out?

Thank You

Kwame Amoah.

Create the script as below and follow the instruction in same

  # Defines the location of iptables executables.
iptables=/sbin/iptables
 
  #Clears if any old iptable rules/ policies are there.
iptables --flush -t nat

 # Now we will do Masquerading ie. we are doing NAT.
iptables --table nat --append POSTROUTING --out-interface ppp0 -j MASQUERADE
iptables --append FORWARD --in-interface eth0 -j ACCEPT

 # Enabling packet forwarding.
echo 1 > /proc/sys/net/ipv4/ip_forward


# Copy this file to /etc/rc.d/rc.nat
# make it executable : chmod 7555 /etc/rc.d/rc.nat
# Now add following lines in rc.local
# /etc/rc.d/rc.nat
# this will allow to set your machine as gateway at every startup