Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Linux as a gateway

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

971 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