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.
Please I want to use Fedora Core build a secure router on my network to distribute internet access to other people via my office internet.
David,
Could you be a little more descriptive and clear? I'm getting a bit lost. What is the difference between "your network" and the "officer internet"? Do you mean that you just want to build a router for your office? Or is there something I'm missing?
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
Check out this site to build a firewall router. Just answer the questions it ask.
Then once the script is built and saved to /etc as ' firewall.sh '.
Also it must have the executae permission set as well. ' chmod +x /etc/firewall.sh '
Now do the following.
Disable the default Fedora firewall script. ' chkconfig --level 345 iptables off '
Stop the iptables. ' service iptables stop '
Then goto /etc and type. ' ./firewall.sh ' Will need to be run as root.
To make it startup on bootup add the line ' /etc/firewall.sh ' to the bottom of /etc/rc.local file.
Could you be a little more descriptive and clear? I'm getting a bit lost. What is the difference between "your network" and the "officer internet"? Do you mean that you just want to build a router for your office? Or is there something I'm missing?
-Jason
Thank you Jason...
I mean the same network.
Let me explain more...
I have broadband internet in my office assigned with public ip address as xx.xx.xx.11/29
Now I have Fedora Core box with 2 NIC and I assigned xx.xx.xx.13/29 to eth0, I also assigned 192.168.2.1/29 to eth2. I used cross cable to connect my laptop direct to the Fedora Core box eth1 and assigned 192.168.2.2/29 on the laptop but I can not access internet from the laptop. When I ping 192.168.2.1 from my laptop, it reply fine but pinging xx.xx.xx.11 time out.
Please what should enable on the Fedora Core box to work as router/server on the network?
Check out this site to build a firewall router. Just answer the questions it ask.
Then once the script is built and saved to /etc as ' firewall.sh '.
Also it must have the executae permission set as well. ' chmod +x /etc/firewall.sh '
Now do the following.
Disable the default Fedora firewall script. ' chkconfig --level 345 iptables off '
Stop the iptables. ' service iptables stop '
Then goto /etc and type. ' ./firewall.sh ' Will need to be run as root.
To make it startup on bootup add the line ' /etc/firewall.sh ' to the bottom of /etc/rc.local file.
Brian
Hi Brian,
Please explain in simple way! I mean the way I can easily catch up with the scripts/configuration...
So you set the eth0 IP to xxx.xxx.xxx.13?
What is xxx.xxx.xxx.11? Another machine?
So you should be able to ping xxx.xxx.xxx.13 but not sure of xxx.xxx.xxx.11.
Can you ping xxx.xxx.xxx.13 from the laptop connected to eth1?
One thing I would do is set the 192.168.2.0 Class C to a full class C to make use of 254 IPs. 192.168.2.0/24 to have 192.168.2.1 through 192.168.1.254.
Maybe this is what you are needing.
Now have you enabled IP masquerading to allow network data from eth1 to pass on to eth0?
Lets stop there for now. This thread can go so many ways without specifically what you want. Lets take it one step at a time.
Your advice is indeed correct, but a bit simplistic for my taste.
David,
There are a lot of security issues with connecting a system to a broadband connection. You really should have a decent firewall. While this is possible with Fedora, the easiest solution is to download a distribution like IPCop. The installation is very easy, and it will handle all of the routing and firewall functions with easy setup.
Personally, I've done multiple experiments with routers, and always found a pre-made distribution easiest.
On the other hand, I'm sure there's a reason why you chose Fedora. I have EVERY linux box on my network running SuSE, and it's much easier to have a heterogeneous Linux setup, where administration, logging, monitoring, and updates are the same. In this case, I would highly recommend that you do a search online for a router/firewall HOWTO for FC, as these delve into the details of configuration and installation.
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
I agree there jantman on the security issues. From the users request, the user just wanted to have eth1 to connect to the internet through eth0 at this time from what I interrupt.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.