[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ipfilter
Subject:    IPF & DHCP
From:       "Angka H. K." <angka_h () yahoo ! com>
Date:       2003-06-16 9:40:28
[Download RAW message or body]

Dear all,

I just setup an ipfilter on FreeBSD 4.8 that has 4 NIC
"known as xl on FreeBSD" and connected to 3 cable
modem and to a switch.

xl3 ip address 192.168.1.1/24 as internal gateway the
others are configured by DHCP server.

After the initial setup complete I reboot the box and
get only 1 interface configured by dhcp why ?

I tried using supersede subnet-mask 255.255.255.255 on
dhclient for interface 0 and 1 and it solved but it
still doesn't work like I want. My rules look like
below.

My clients that using IP 192.168.1.130 and up can not
connect to internet. May be it necessary my out side
interface have the same network address or in the same
subnet.

My dhclient.conf :

interface xl0 {
    supersede subnet-mask 255.255.255.255;
}

interface xl1 {
    supersede subnet-mask 255.255.255.255;
}

My ipnat.rules :

map xl2 192.168.1.0/26 -> 0/32 portmap tcp/udp auto
map xl2 192.168.1.0/26 -> 0/32

map xl1 192.168.1.128/25 -> 0/32 portmap tcp/udp auto
map xl1 192.168.1.128/25 -> 0/32

map xl0 192.168.1.192/25 -> 0/32 portmap tcp/udp auto
map xl0 192.168.1.192/25 -> 0/32

My ipf.rules :
pass in all
pass out all

=====
Angka H. K.
------------

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic