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
Solved

Linux as a gateway

Posted on 1997-04-02
1
179 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
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

792 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