Solved

Linux as a gateway

Posted on 1997-04-02
1
169 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 100 total points
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
what is the size of a TCP segment 10 82
Linux neworking 4 63
Cron jobs 12 86
OpenVPN Speed limitation to only 10 mbps 7 34
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now