qeldroma Posted May 10, 2003 Share Posted May 10, 2003 I've got two NIC's, one per subnet. How do i tell this machine to let each subnet acces the other over this machine? I looked in the "route" manual, but didn't find the right way for this.. Link to comment Share on other sites More sharing options...
MottS Posted May 10, 2003 Share Posted May 10, 2003 Are you using Shorewall or plain IPtable ? Link to comment Share on other sites More sharing options...
qeldroma Posted May 10, 2003 Author Share Posted May 10, 2003 Plain iptables. Can i "iptable" this? I thought i'd have to find out a special way to do this via "route"? Link to comment Share on other sites More sharing options...
b Posted May 11, 2003 Share Posted May 11, 2003 Your case described and explained. (LDP free publication, http://www.tldp.org/guides.html mdk used to have a "nag" rpm for this) Linux Network Administrator's Guide From appendix A Example Network: The Virtual Brewery ... The Virtual Brewery and the Virtual Winery each have a class C subnet of the Brewery's class B network, and gateway to each other via the host vlager, which also supports UUCP connection. ... Chapter 5: Configuring TCP/IP Networking ... Howto setup vlager et all. (Have not done this yet) HIH Link to comment Share on other sites More sharing options...
qeldroma Posted May 11, 2003 Author Share Posted May 11, 2003 This form of routing is only for the machine. Not from one net to the other. The "route" command is only for kernel routing, so the machine with the kernel knows where to put a package. What i need is a way to tell the machine how to send from one net to the other, p.e. 192.168.0.23 wants to ping 192.168.1.14 Must i install the "routed"? Or can iptables do this in the way it forwards to the internet? Link to comment Share on other sites More sharing options...
b Posted May 13, 2003 Share Posted May 13, 2003 Hi Dont know much about routed + to me it seems a large network overkill solution to a simple network problem. Assuming /etc/hosts, /etc/networks, /etc/resolv.conf are correctly set on all machines and all machines on subnet have a correctly set default gateway an idea: The router/2 nic machine has /proc/sys/net/ipv4/ip_forward == 1 it's a total blocker if not set to 1 i.e the packets on each subnet are going nowhere else! Again HIH Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now