| [SOLVED] Ip forwarding publics IP's Hi, i need to setup a firewall for a set of computers at my university.
The net is structured as follows: There are a total of 5 groups of computers, all computers have publics ip's and a /24 netmask, including the firewall. 1 group is interconnected through a switch, there is another set interconnected through another switch. The second switch is connected to the first switch and the first switch is connected to the gateway. The another 3 groups have the same gateway, netmask and subnet as the rest of the network, but they're not connected to the first switch, they are connected to some-place-i-dont-know-about.
All groups are in the same broadcast address.
I've already setup a machine between the first group and the first switch, but i haven't been able to route packets properly. Packets get to the firewall and, seeing the routing cache of the firewall, the packets are forwarded properly to the internet, but i've never been able to get a response, nor i've been able to connect from the outside with the firewall on. The only way i've been able to connect to the internet is source-nating all packets leaving the firewall to the firewall ip-address, but that's no good because i want to be able to connect from the outside.
I'm attaching the routing table and a "ascii graphic" of the network to make the picture more clear. Code: --------- -----------------------------
-gateway- -the-place-I-dont-know-about-
--------- -----------------------------
^ ^ ^ ^
^ ^ ^ ^
--------- ---------- ^ ^ ^
-switch1- <<<<<<<<< -switch2- ^ ^ ^
--------- ---------- ^ ^ ^
^ ^ ^ ^ ^
^ ^ ^ ^ ^
--------- --------- --------- --------- ---------
-group 1- -group 2- -group 3- -group 4- -group 5-
--------- --------- --------- --------- ---------
Kernel IP routing table
Destination Gateway Genmask Flags Iface
220.20.10.1 0.0.0.0 255.255.255.255 UH eth_int
220.20.10.0 0.0.0.0 255.255.255.0 U eth_pci
127.0.0.0 0.0.0.0 255.0.0.0 U lo
0.0.0.0 220.20.10.1 0.0.0.0 UG eth_int
The firewall i'm trying to install would be between group1 and switch1
Since all the computers on the network can communicate to each other without problems, my guess is that the-place-i-dont-know-about is actually a switch where my gateway is connected. |