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.
So I'm having a problem with what I now think is routing.
my network:
---------------{eth0}[server]
|
[hub]
|
-------------------------[router]-----[network]
****for some reason formatting was being weird but bewteen sever and router is eth1 the problem*****
I have a server that acts as a bridge between my network and internet. I setup it this way because I wanted to learn linux and this way was something I hadn't done before.
The problem is if I plug in eth0 everything is cool. Can initiate SSH connections, remote into server for anyway on internet. Problem is if I plug in the eth1 I lose all ability to remote in, etc.
I setup a firewall program called firestarter but don't see a way to configure it for other nics.
So this brings me here. I think this maybe a routing issue, but I'm new to linux and have no idea how to proceed how to fix this.
I forgot to copy over info of reports w/ eth1 plugged in provide tonight, only big difference is eth1 becomes default location. If when eth1 is plugged in and it becomes default route would that explain why I'm unable to remote into server since all info is going to eth1?
basically the concept behind setting this way was connect everything behind the router and lock it down, no port fowarding, etc. Then have a single box 1/ line connected directly to modem so I could connect to from outside of network. Then other line would be used so that once I've logged into the server I could then vnc into anything on my network.
So basically [eth0] = direct line from [hub/Modem], [eth1]= access to network.
Uhm so how do I configure my default path to run via eth0 or whereever I want it to
Sounds like you're trying to set up a firewall. You're going to need to use IP forwarding if you want to VNC through it, but you can use iptables to restrict which ports are open.
You're going to have to set up your network into two subnets. If you can post your /etc/sysconfig/network and your /etc/sysconfig/network-scripts/ifcfg-eth0, ifcfg-eth1, we can see what you have to tweek.
Originally posted by meping ideally what I want to is setup a firewall on eth0 allowing SSH & VNC connection and block all traffic except for vnc on eth1
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.