mdkelly
06-29-2004, 11:50 AM
Hello all,
Okay, not new to Linux, but very new to routing, gateways, and iptables so I apologize if this question is very newbie like.
Here goes:
I have a network that is currently protected by a hardware router/firewall. This device currently also serves as the office gateway machine and provides all of the NAT, and port forwarding services.
I want to / need to build a seperate gateway machine for the office network as the hardware router does not provide everything we need for the services we would like to provide.
I will be building this gateway on a Linux machine, but am having some issues due to limited knowledge.
I have read many how-to documents and all that I have have found assume that your gateway machine will also be a firewall and have one side connected to the Internet and the other side connected to your LAN.
In my case this will not be the case. One side of the gateway will connect to the hardware router and the other side will connect to the office LAN.
LAN <---> Linux gateway <---> hardware router <---> Internet
The LAN currently uses static IPs within the 192.168.0.xxx range and I attempted to setup the gateway using 192.168.0.180 (255.255.255.0) for the NIC connecting to the hardware router and 192.168.0.181 (255.255.255.0) for the NIC connecting to the LAN and had no success.
In my reading this morning I noted that the issue may be having both sides of the gateway within the same subnet range, but I am not sure.
I would be extremely grateful if someone could help me get started with this gateway build as I know once I get it at least off the ground it will all start falling into place after that. I know that the setup I am trying to create is not unusual, it is just something that is currently outside of my scope of knowlege.
Thanks to any and all who can assist
mdkelly
Okay, not new to Linux, but very new to routing, gateways, and iptables so I apologize if this question is very newbie like.
Here goes:
I have a network that is currently protected by a hardware router/firewall. This device currently also serves as the office gateway machine and provides all of the NAT, and port forwarding services.
I want to / need to build a seperate gateway machine for the office network as the hardware router does not provide everything we need for the services we would like to provide.
I will be building this gateway on a Linux machine, but am having some issues due to limited knowledge.
I have read many how-to documents and all that I have have found assume that your gateway machine will also be a firewall and have one side connected to the Internet and the other side connected to your LAN.
In my case this will not be the case. One side of the gateway will connect to the hardware router and the other side will connect to the office LAN.
LAN <---> Linux gateway <---> hardware router <---> Internet
The LAN currently uses static IPs within the 192.168.0.xxx range and I attempted to setup the gateway using 192.168.0.180 (255.255.255.0) for the NIC connecting to the hardware router and 192.168.0.181 (255.255.255.0) for the NIC connecting to the LAN and had no success.
In my reading this morning I noted that the issue may be having both sides of the gateway within the same subnet range, but I am not sure.
I would be extremely grateful if someone could help me get started with this gateway build as I know once I get it at least off the ground it will all start falling into place after that. I know that the setup I am trying to create is not unusual, it is just something that is currently outside of my scope of knowlege.
Thanks to any and all who can assist
mdkelly