Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a few linux machines setup with apache, ssh, ftp services running on them. I use zoneedit to dns ips.
I have a linux firewall setup that has all of the urls dns linked to it.
firewall.domain.ca, domain.ca, halflife.domain.ca
The follow is the networking configuration I have setup
Internet
|
firewall.domain.ca
|
|----------|
domain.ca halflife.domain.ca
I want to be able to 'ssh firewall.domain.ca' and be connected to firewall.domain.ca
I also would like to 'ssh domain.ca' and be passed throught firewall.domain.ca and connect to domain.ca
I thought this command would work but it does not.
$IPTABLES -t nat -A PREROUTING -d domain.ca -p tcp -j DNAT --to-destination [domain.ca ip address]
I am looking for the command to pass all tcp traffic through the firewall to the linux box behind the firewall. I do not want the root of domain.ca to have root access to firewall.domain.ca.
There are a few solutions:
* Use 2 public IPs.
* Run the ssh servers on different ports.
* Only ssh into server 1 from the outside, then from there ssh to server 2
However when I use two external ips my cable modem slows to a crawl because I don't have a 100MB hub for connecting the computer to the cable modem.
The problem with running on different port is I would have to port forward every port that domain.ca would want to use.
SSH ing from 1 machine to the next would not work because I would also like various users to be able to ftp to their home directory, but they only have an account on domain.ca not on firewall.domain.ca
Originally posted by nukenstien However when I use two external ips my cable modem slows to a crawl because I don't have a 100MB hub for connecting the computer to the cable modem.
Why would it slow down? I'm not suggesting making any infrastructure changes.
It slows down because with my cable modem, even though it is only 5Mb down and 1 Mb up, if you switch from a 100MB connection to a 10MB connection the speed goes down.
I have the cable modem plugged into my linux box with a 100MB card so it connects at 100MB but when I plug the cable modem into my hub, to allow both computers external ips, the hub is only 10MB so it only connects at 10MB.
I do not know why it slows down if it is not reaching the hardware limit.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.