November 24, 2024, 03:20:54 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: sharing internet connection without a proxy server  (Read 12566 times)

Offline amnyarku

  • Linux Noob !
  • *
  • Posts: 6
sharing internet connection without a proxy server
« 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.

Offline yzq

  • Linux Noob !
  • *
  • Posts: 14
sharing internet connection without a proxy server
« Reply #1 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!!

Offline yzq

  • Linux Noob !
  • *
  • Posts: 14
sharing internet connection without a proxy server
« Reply #2 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!!

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
sharing internet connection without a proxy server
« Reply #3 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

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
sharing internet connection without a proxy server
« Reply #4 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

Offline anil_garg5

  • Linux Learner
  • ***
  • Posts: 71
sharing internet connection without a proxy server
« Reply #5 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.

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
sharing internet connection without a proxy server
« Reply #6 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 .

Offline technocp

  • New Member
  • Posts: 3
Re: sharing internet connection without a proxy server
« Reply #7 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