Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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 am farly new to linux and I am try to set up a linux box for use as a router. The linux box has 2 NICs: eth0, and eth1. I work for a company that has customer computers come in for repair. We are trying to isolate the workbench from the rest of the servers but still ba able to acces the servers and the internet. our network is setup as folows.
we have a static IP from our ISP (not sure what it is) our severs or 10.1.2.x. the new bench I am setting up will be 10.1.9.x
I have the following static IPs set in the linux box
eth0 10.1.2.76
sub 255.255.255.0
gatway 10.1.2.1
eth1 10.1.9.1
sub 255.255.255.0
Gateway 10.1.2.76
any help would be greatly appreciated
Last edited by mleppelman; 04-11-2011 at 02:47 PM.
Ok, we might be able to help, but what is the question ?
1.) Setup the ip`s (which you did )
2.) Configure iptables (if you do not know how to do that I can help you)
3.) echo 1 > /proc/sys/net/ipv4/ip_forward
4.) maybe configure your proxy/router
I am having troubles getting it to work. I have no idea how to set up iptables. Help would be greatful. also I am unabl to ping either of the IP from a computer set on the bench with IP of 10.1.9.20
Last edited by mleppelman; 04-11-2011 at 02:57 PM.
I am having troubles getting it to work. I have no idea how to set up iptables. Help would be greatful. also I am unabl to ping either of the IP from a computer set on the bench with IP of 10.1.9.20
If you are not comfortable working with Linux (and even if you are), I would recommended PFSense, or maybe IPCop or Smoothwall. They will allow you to take an older system with multiple Nics and very easily configure what you want to do.
The nice thing about PFSense is it allows multiple WAN links, can do fail over ... IPCop is more a home user setup, but works well, and Smoothwall also works well
PFSense is FreeBSD based, IPCOP and Smoothwall are Linux based.
Any of these can be setup in about 5 - 10 minutes, and are very stable and as secure as you make them.
Distribution: Slackware64 13.37, Solaris 10, RHEL5/6
Posts: 92
Rep:
Hi,
What is your Linux distribution that you use at your work place?
Also, your current problem is that you can't communicate between 10.1.9.x and 10.1.2.x?
I'm trying understand your problem...
-gibb
First off you need to disable your firewall till you have a working setup. Now just to point out your gw should be blank unless your box is pulling IP from another router (ISP info or unless you are cascading routers). Did you enable ipv4_forwarding in /etc/sysctl.conf.
my distribution is fedora 14. kernel 2.6.35.11-83.fc14
eth0 is the WAN side. eth1 is the LAN side
another problem I am having is I can't ping either IP from the client computer on the bench. Before I installed the iptables package I was able to ping both.
I am able to ping both IPs again.
now when I have a computer plugged it to eth1 I can't get on the internet.
It seams the system does not know what nic is use to get on the net and what is used for the test bench. I think once this is fixed it should be working.
Last edited by mleppelman; 04-12-2011 at 10:05 AM.
I must be pretty stupid. I can't get any one of those programs to install let alone work.
They aren't programs, they are complete operating systems, specialized distributions of linux (FreeBSD in the case of PFSense). Simply burn the iso to a CD, boot from the CD, and there will be an option to configure and run off the CD or install to hard drive (which you would want to do after testing).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.