Results 1 to 2 of 2
Hi. I've given a project of setting up a firewall in my office. I have only found documentation for masquerading using one real IP address and a private network type ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-15-2002 #1
- Join Date
- Nov 2002
linux routing inside a network segment
I have only found documentation for masquerading using one
real IP address and a private network type 192.168.x.x
I did that and it worked, the problem is that I need real addresses,
and my linux box is between the gateway and all my network.
I configured the routing table with the command ip and I can
access the gateway and all the nodes on my network, but it
just doesn't forward.
What am I doing wrong? I someone could just help me, it would
save my job.
- 11-16-2002 #2
- Join Date
- Jun 2002
- San Antonio
sounds like quite the job you have there. Are you using standard port forwarding for some addresses and masquerading for others? For instance:
Comp1 = 126.96.36.199
Comp2 = 188.8.131.52
Comp3 = 184.108.40.206
Comp[4-9] = 220.127.116.11
Comp[10-99] = 18.104.22.168
If you are then you just have to set up different rules in the /etc/sysconfig/iptables (or ipchains depending) that just sort on IP addresses. Like (give me a break this is from memory):
-A -s 0/0 -d 22.214.171.124/255 -j FORWARD_1
-A -s 0/0 -d 126.96.36.199/255 -j MASQUERADE_1
where FORWARD_1 and MASQUERADE_1 are other chains you set up to send it to certain areas of your network.I respectfully decline the invitation to join your delusion.