?
Solved

Linux as a gateway

Posted on 1997-04-02
1
Medium Priority
?
189 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 200 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

TCP/IP Network Protocol Cheat Sheet

TCP/IP is a set of network protocols which is best known for connecting the machines that make up the Internet. The truth is that TCP/IP is one of the oldest network protocols and its survival is mainly based on its simplicity and universality.

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…
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

801 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