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 redhat 7 server sharing the web for 5 internal pc's using a cable modem. I want to have 2 internet connections
1. cable modem 512/128
2. DSL modem 512/512
the reason for this is so that i can download, run a ftp and games server on the DSL connection, whilst playing the online games and generally browsing the web in the cable modem
There is 5 of us in the house and they all complain at each other when the internet and online games or slow due to some1 else downloading.
Can this be done using ipchains, I havent had time to look into it at the moment. just wondering if any1 has done this r knows of any goods link.
Distribution: Whatever I feel like at the time I install.
Posts: 284
Rep:
Everywhere I have seen people are making the move to iptables. It is built into redhat 7.x and is supposed to be better than ipchains. I have a script that almost works using the latest redhat kernel and iptables 1.2.4 but I can't get it to send some IPs to oen et NIC and the other int IPs to the other ext NIC.
If you would like to look at my script let me know. It does a full firewall and the routing. currently it only routes (forwards) through one or the other ext NIC.
I dont know about upgrading to Iptables, I have read articles that companies wont upgrade to iptabels cos its a unproven technology, unlike ipchains which has been out years.
And the down time for the upgrade to redhat 7.2 will get me killed by the other guys in the house.
I thought it would be possible to forward different ports to different modems using ipchains.
I'll have a look at the script though it may convince me to upgrade
if u would email it papa_smurf14@hotmail.com
Distribution: Whatever I feel like at the time I install.
Posts: 284
Rep:
I got it to work using iptables fianlly.
Here is what I did.
iptables -t nat POSTROUTING -p all -d 0/0 -s <ip address of one> -j SNAT --to-source <ip addy of first external nic>
iptables -t nat POSTROUTING -p all -d 0/0 -s 0/0 -j SNAT --to-source <ip address of second external nic>
and add as many of these as you need.
What I would do is the following:
use line 1 to do the ftp server and game server to eth1
and then
the second line sends all other int ips through the second IP eth2
I used to have my firewall on Red Hat 6.2 and I would use ipchains for over a year, i liked the way it worked the only issue was that every time i wanted to forward a port for an Internal computer I had to update my rc.firewall script and rerun it or reboot, I also live in a house with 5 computers, so that used to get tidious.
Since then, I upgraded to Red Hat 7.0 and i started using iptables, and I like it a whole lot better, not just like it but PREFER it. It's more secure and more flexible, plus you can do natting too.
iptables -t nat POSTROUTING -p all -d 0/0 -s <ip address of one> -j SNAT --to-source <ip addy of first external nic>
You state "<ip address of one>" is this the address of eth0 (e.g. LAN 192.168.1.1) ?
2. I cant see the code that will allow me to upload and download (ftp) using the dsl connection whilst browsing the web and playing online games on the cable connection.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.