On Fri, Apr 26, 2002 at 01:07:09PM +0800, Jimmy wrote:
> On Fri, 26 Apr 2002 09:36:55 +0800
> Jimmy <[EMAIL PROTECTED]> wrote:
> 
> > Hi, 
> > I'm using FreeBSD-4.5-STABLE and I have 4 interfaces on it 
> > 
> >     fxp0 -> localnet (192.168.100.0/24) (nat)
> >     xl0 -> external interface
> >     xl1 -> localnet (192.168.200.0/24 (nat)
> >         xl2 -> bridge with xl0
> > 
> > My concerned is, if I enable the bridge in xl2 (net.link.ether.bridge_cfg: 
>xl0:0,xl2:0) my localnet work (192.168.100.0/24 and 192.168.200/24) cannot connect 
>with hosts connected to xl2.  I've search google and the archive but I don't see the 
>solution there. 
> > 
> > Thanks in advance,
> > 
> > Jimmy
> 
> Let me revise my question, I'm using FreeBSD-4.5-STABLE with ipf and ipfw (ipf for 
>nat and packet filter & ipfw for traffic shaping)
> 
> /etc/ipnat.rule
> ---------------map xl0 192.168.100.0/24 -> 203.167.87.59/32 portmap tcp/udp 
>40000:60000
> map xl0 192.168.100.0/24 -> xxx.xxx.xxx.xxx/32
> map xl0 192.168.100.0/24 -> xxx.xxx.xxx.xxx/32 proxy port ftp ftp/tcp 
> map xl0 192.168.100.105/32 -> xxx.xxx.xxx.xxx/32 proxy port ftp ftp/tcp
> rdr fxp0 0.0.0.0/0.0.0.0 port 80 -> 127.0.0.1 port 8888
> map xl0 192.168.200.0/24 -> xxx.xxx.xxx.xxx/32 portmap tcp/udp 40000:60000
> map xl0 192.168.200.0/24 -> xxx.xxx.xxx.xxx/32
> rdr xl1 0.0.0.0/0.0.0.0 port 80 -> 127.0.0.1 port 8888
> 
> my ipnat is working fine but if I put an external host in my filter bridge nic (xl2) 
>the localnet can't connect to the host connected on the filter bridge.
> 
> does ipfilter/ipnat doesn't support yet this kind of setup? or I'm I missing 
>something with my ipnat/ipf rules?

Ahhhhhhhhhhhhgggggggggghhhhhhhh!!! You're going to do NAT in a
bridge. Evil, evil, evil, evil!!!

IPFilter does not support bridging in FreeBSD 4.5-STABLE. However, you
can try the patch at the URL in my .sig if you want to try it. Please
let me know if you actually get ipnat(8) to work correctly on a
bridge. I didn't have the stomach to try something that gross myself
when I was testing the patches. There is no obvious reason why it
wouldn't work.
-- 
Crist J. Clark                     |     [EMAIL PROTECTED]
                                   |     [EMAIL PROTECTED]
http://people.freebsd.org/~cjc/    |     [EMAIL PROTECTED]

Reply via email to