Hello,

I know this topic has been answered numerous times, but the responses i've
gathered doesn't seem to help me
in making my gateway machine route properly.

Here's my setup:

Internet --------ADSL modem -----------rl0-- freebsd
gateway --rl1(192.168.0.1) ----switch1 private 192.168.0.x
                                                                            
                         --rl2 (192.168.1.1)-----switch2 private 192.168.1.x
                                                                            
                         --rl3 (192.168.2.1)------switch3 private
192.168.2.x

My ISP has given to block of public IPs, say a.b.c.2 to a.b.c.5 with a
netmask of 255.255.255.248 and gateway of
a.b.c.1 and d.e.f.3 to d.e.f.20 with a netmask of 255.255.255.224 and
gateway of d.e.f.1

on the gateway rl0, i have set up the main ip as a.b.c.2, with the netmask
255.255.255.248 and the gateway a.b.c.1 as the default gateway, moreover i
have binded to rl0 as aliases the rest of the ips

i have "nated" all the machines in network 192.168.0.x with no problem as
per the freebsd docs, but i'm encountering
problem  in making a machine in 192.168.1.x use a public ip (aliased on
rl0), be it a.b.c.x or d.e.f.x

i didn't have any problem for the 192.168.0.x network, i used static nat
with a redirect_address directive
specifically redirect_address 192.168.0.2 a.b.c.5 for example, 192.168.0.2
default gateway being 192.168.0.1

what i want to achieve is this: for traffic coming from 192.168.1.2 and
going through rl2, route it through rl0 as d.e.f.10 transparently (inbound
and outbound)

is this possible with the forward command of ipfw?
i have added this to my firewall rule, right after the nat divert rules, but
to no avail: add forward d.e.f.1 ip from 192.168.1.2 to any out via rl0

thanks for any help

tien duc


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to