Solved

Linux as a gateway

Posted on 1997-04-02
1
188 Views
Last Modified: 2010-03-18
How would linux be set up to be used as a gatway for a set of pcs to use the internet using a private non existing class (eg: 192.168.0.1)
0
Comment
Question by:jesmond
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
crbild earned 100 total points
ID: 1584291
The answer is really long.

ok i try with the shortest (otherway ask me more details)

1) set the kernel like "ip masquerade" and "ip forwarding"
2) make the kernel and modules (for the ftp you need to load
   a/some module)
3) set the masquerade ip for your network with the command
   ipfwadm.
   (ex:
       ipfwadm -F -p deny
       ipfwadm -F -a masquerade -P tcp -S my_network -D 0.0.0.0/0
       ipfwadm -F -a masquerade -P udp -S my_network -D 0.0.0.0/0
    )and put this in /etc/rc.d/rc.local if you have slakware
    or other startup file.
4) and of course set your connection to internet with ppp
   or a network card.
5) on your private network only the tcp and udp (not ping,
   but yes for traceroute) can be used for pass through the       firewall (this is what we did now)

and finally you have to configure the single pc for:

gateway = address_of_linux_on_your_network
dns = the_dns_you_have_from_the_provider

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question