* Iptables not working with RH9
@ 2003-11-20 15:54 Derek Storvik
2003-11-20 16:17 ` Scott MacKay
2003-11-20 17:17 ` Ramin Dousti
0 siblings, 2 replies; 7+ messages in thread
From: Derek Storvik @ 2003-11-20 15:54 UTC (permalink / raw)
To: netfilter
Hello all
Hopefully someone can see my error.
I have been running RH7.3 with it's standard kernal version 2.4.18-3 for several months configured as a transparent bridging firewall. We recently purchased a new machine and wanted to install RH9 with its standard kernal 2.4.20( i think)I followed the same steps installed with iptables and bridging utils and used my same script file to setup the bridge with two nics and fill in all my rules. This didn't seem to work right and on further testing realized NOTHING was being filtered. I then rebooted and manualy set up the bridge and cleared all the tables and set the default policy to drop. SO at this point nothing should get through. Well it bridges everything, and the counters in iptables do not increment. The system acts as if it is not there what so ever.
here is the setup after the basic minimal install
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 eth1
ifconfig eth1 0.0.0.0 promisc
ifconfig eth0 0.0.0.0 promisc
#bring up bridge with either of the next two commands
ifconfig br0 up
ip link set br0 up
#both do the same thing namely nothing
iptables -X
iptables -F
iptables -P FORWARD DROP
iptables -P INPUT DROP
iptables -P OUTPUT DROP
This setup happily bridges packets right on through with no updates to the iptables counters.
I have been experimenting with devil linux as well recently and it exhibits the same problem.
ip_forwarding is set to 0 as it has been on my working rh7.3 machine I tried setting it to 1 but that didn't help the problems. Im not 100% sure what exactl the ip_forwarding property corresponds to anyway.
any help would be greatly appreciated!
Thanks
Derek
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Iptables not working with RH9
2003-11-20 15:54 Derek Storvik
@ 2003-11-20 16:17 ` Scott MacKay
2003-11-20 17:17 ` Ramin Dousti
1 sibling, 0 replies; 7+ messages in thread
From: Scott MacKay @ 2003-11-20 16:17 UTC (permalink / raw)
To: Derek Storvik, netfilter
Did you add on the iptables hook for bridging and
activate all the proper configuration settings?
I has a similar problem with 2.4.22 (under RH9)
because I forgot to menuconfig and add in the proper
settings.
--- Derek Storvik <dstorvik@pf.ueo.ohio-state.edu>
wrote:
> Hello all
> Hopefully someone can see my error.
> I have been running RH7.3 with it's standard kernal
> version 2.4.18-3 for several months configured as a
> transparent bridging firewall. We recently purchased
> a new machine and wanted to install RH9 with its
> standard kernal 2.4.20( i think)I followed the same
> steps installed with iptables and bridging utils and
> used my same script file to setup the bridge with
> two nics and fill in all my rules. This didn't seem
> to work right and on further testing realized
> NOTHING was being filtered. I then rebooted and
> manualy set up the bridge and cleared all the tables
> and set the default policy to drop. SO at this point
> nothing should get through. Well it bridges
> everything, and the counters in iptables do not
> increment. The system acts as if it is not there
> what so ever.
>
> here is the setup after the basic minimal install
> brctl addbr br0
> brctl addif br0 eth0
> brctl addif br0 eth1
> ifconfig eth1 0.0.0.0 promisc
> ifconfig eth0 0.0.0.0 promisc
> #bring up bridge with either of the next two
> commands
> ifconfig br0 up
> ip link set br0 up
> #both do the same thing namely nothing
> iptables -X
> iptables -F
> iptables -P FORWARD DROP
> iptables -P INPUT DROP
> iptables -P OUTPUT DROP
>
> This setup happily bridges packets right on through
> with no updates to the iptables counters.
>
> I have been experimenting with devil linux as well
> recently and it exhibits the same problem.
>
> ip_forwarding is set to 0 as it has been on my
> working rh7.3 machine I tried setting it to 1 but
> that didn't help the problems. Im not 100% sure what
> exactl the ip_forwarding property corresponds to
> anyway.
>
> any help would be greatly appreciated!
> Thanks
> Derek
>
>
__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Iptables not working with RH9
@ 2003-11-20 16:29 Derek Storvik
2003-11-21 1:47 ` Josh Berry
0 siblings, 1 reply; 7+ messages in thread
From: Derek Storvik @ 2003-11-20 16:29 UTC (permalink / raw)
To: netfilter, scottmackay
I have not custom compiled the kernel. I was first using rh7.3 and it works straight out of the box. I assumed that they would not have taken that code back out of the precompiled kernel but i suppose they could have
Derek
>>> Scott MacKay <scottmackay@yahoo.com> 11/20/03 11:17AM >>>
Did you add on the iptables hook for bridging and
activate all the proper configuration settings?
I has a similar problem with 2.4.22 (under RH9)
because I forgot to menuconfig and add in the proper
settings.
--- Derek Storvik <dstorvik@pf.ueo.ohio-state.edu>
wrote:
> Hello all
> Hopefully someone can see my error.
> I have been running RH7.3 with it's standard kernal
> version 2.4.18-3 for several months configured as a
> transparent bridging firewall. We recently purchased
> a new machine and wanted to install RH9 with its
> standard kernal 2.4.20( i think)I followed the same
> steps installed with iptables and bridging utils and
> used my same script file to setup the bridge with
> two nics and fill in all my rules. This didn't seem
> to work right and on further testing realized
> NOTHING was being filtered. I then rebooted and
> manualy set up the bridge and cleared all the tables
> and set the default policy to drop. SO at this point
> nothing should get through. Well it bridges
> everything, and the counters in iptables do not
> increment. The system acts as if it is not there
> what so ever.
>
> here is the setup after the basic minimal install
> brctl addbr br0
> brctl addif br0 eth0
> brctl addif br0 eth1
> ifconfig eth1 0.0.0.0 promisc
> ifconfig eth0 0.0.0.0 promisc
> #bring up bridge with either of the next two
> commands
> ifconfig br0 up
> ip link set br0 up
> #both do the same thing namely nothing
> iptables -X
> iptables -F
> iptables -P FORWARD DROP
> iptables -P INPUT DROP
> iptables -P OUTPUT DROP
>
> This setup happily bridges packets right on through
> with no updates to the iptables counters.
>
> I have been experimenting with devil linux as well
> recently and it exhibits the same problem.
>
> ip_forwarding is set to 0 as it has been on my
> working rh7.3 machine I tried setting it to 1 but
> that didn't help the problems. Im not 100% sure what
> exactl the ip_forwarding property corresponds to
> anyway.
>
> any help would be greatly appreciated!
> Thanks
> Derek
>
>
__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Iptables not working with RH9
2003-11-20 15:54 Derek Storvik
2003-11-20 16:17 ` Scott MacKay
@ 2003-11-20 17:17 ` Ramin Dousti
2003-11-20 17:53 ` Scott MacKay
1 sibling, 1 reply; 7+ messages in thread
From: Ramin Dousti @ 2003-11-20 17:17 UTC (permalink / raw)
To: Derek Storvik; +Cc: netfilter
I have no experience with bridging code on linux but one thing comes to mind
about your setup. A bridge acts at layer 2. Netfilter is hooked into the IP
layer (layer 3). So when you're bridging, I'd say, it's normal that the drop
policy has no effect... Or I may be wrong...
Ramin
On Thu, Nov 20, 2003 at 10:54:41AM -0500, Derek Storvik wrote:
> Hello all
> Hopefully someone can see my error.
> I have been running RH7.3 with it's standard kernal version 2.4.18-3 for several months configured as a transparent bridging firewall. We recently purchased a new machine and wanted to install RH9 with its standard kernal 2.4.20( i think)I followed the same steps installed with iptables and bridging utils and used my same script file to setup the bridge with two nics and fill in all my rules. This didn't seem to work right and on further testing realized NOTHING was being filtered. I then rebooted and manualy set up the bridge and cleared all the tables and set the default policy to drop. SO at this point nothing should get through. Well it bridges everything, and the counters in iptables do not increment. The system acts as if it is not there what so ever.
>
> here is the setup after the basic minimal install
> brctl addbr br0
> brctl addif br0 eth0
> brctl addif br0 eth1
> ifconfig eth1 0.0.0.0 promisc
> ifconfig eth0 0.0.0.0 promisc
> #bring up bridge with either of the next two commands
> ifconfig br0 up
> ip link set br0 up
> #both do the same thing namely nothing
> iptables -X
> iptables -F
> iptables -P FORWARD DROP
> iptables -P INPUT DROP
> iptables -P OUTPUT DROP
>
> This setup happily bridges packets right on through with no updates to the iptables counters.
>
> I have been experimenting with devil linux as well recently and it exhibits the same problem.
>
> ip_forwarding is set to 0 as it has been on my working rh7.3 machine I tried setting it to 1 but that didn't help the problems. Im not 100% sure what exactl the ip_forwarding property corresponds to anyway.
>
> any help would be greatly appreciated!
> Thanks
> Derek
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Iptables not working with RH9
2003-11-20 17:17 ` Ramin Dousti
@ 2003-11-20 17:53 ` Scott MacKay
0 siblings, 0 replies; 7+ messages in thread
From: Scott MacKay @ 2003-11-20 17:53 UTC (permalink / raw)
To: netfilter
Very true. To use iptables, you need a bridge patch,
such as ebtables on sourceforge.net. It patches the
OS to allow netfilter to hook into bridge for the
rules. Works fine! I would suggest getting the
2.4.22 kernel, get the latest off of sourceforge
(under 'ebtables').
You get into the dist dir, do a patch -p1 < PATCHFILE,
use make menuconfig or whatever to activate the
modules and rebuild the kernel. Works like a charm.
--- Ramin Dousti <ramin@cannon.eng.us.uu.net> wrote:
> I have no experience with bridging code on linux but
> one thing comes to mind
> about your setup. A bridge acts at layer 2.
> Netfilter is hooked into the IP
> layer (layer 3). So when you're bridging, I'd say,
> it's normal that the drop
> policy has no effect... Or I may be wrong...
>
> Ramin
>
> On Thu, Nov 20, 2003 at 10:54:41AM -0500, Derek
> Storvik wrote:
>
> > Hello all
> > Hopefully someone can see my error.
> > I have been running RH7.3 with it's standard
> kernal version 2.4.18-3 for several months
> configured as a transparent bridging firewall. We
> recently purchased a new machine and wanted to
> install RH9 with its standard kernal 2.4.20( i
> think)I followed the same steps installed with
> iptables and bridging utils and used my same script
> file to setup the bridge with two nics and fill in
> all my rules. This didn't seem to work right and on
> further testing realized NOTHING was being filtered.
> I then rebooted and manualy set up the bridge and
> cleared all the tables and set the default policy to
> drop. SO at this point nothing should get through.
> Well it bridges everything, and the counters in
> iptables do not increment. The system acts as if it
> is not there what so ever.
> >
> > here is the setup after the basic minimal install
> > brctl addbr br0
> > brctl addif br0 eth0
> > brctl addif br0 eth1
> > ifconfig eth1 0.0.0.0 promisc
> > ifconfig eth0 0.0.0.0 promisc
> > #bring up bridge with either of the next two
> commands
> > ifconfig br0 up
> > ip link set br0 up
> > #both do the same thing namely nothing
> > iptables -X
> > iptables -F
> > iptables -P FORWARD DROP
> > iptables -P INPUT DROP
> > iptables -P OUTPUT DROP
> >
> > This setup happily bridges packets right on
> through with no updates to the iptables counters.
> >
> > I have been experimenting with devil linux as well
> recently and it exhibits the same problem.
> >
> > ip_forwarding is set to 0 as it has been on my
> working rh7.3 machine I tried setting it to 1 but
> that didn't help the problems. Im not 100% sure what
> exactl the ip_forwarding property corresponds to
> anyway.
> >
> > any help would be greatly appreciated!
> > Thanks
> > Derek
> >
>
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Iptables not working with RH9
2003-11-20 16:29 Iptables not working with RH9 Derek Storvik
@ 2003-11-21 1:47 ` Josh Berry
0 siblings, 0 replies; 7+ messages in thread
From: Josh Berry @ 2003-11-21 1:47 UTC (permalink / raw)
To: Derek Storvik; +Cc: netfilter, scottmackay
The bridge-nf code does not come enabled by default with rh7.3. I don't
think that it comes enabled by default on any kernels.
> I have not custom compiled the kernel. I was first using rh7.3 and it
> works straight out of the box. I assumed that they would not have taken
> that code back out of the precompiled kernel but i suppose they could have
>
> Derek
>
>>>> Scott MacKay <scottmackay@yahoo.com> 11/20/03 11:17AM >>>
> Did you add on the iptables hook for bridging and
> activate all the proper configuration settings?
> I has a similar problem with 2.4.22 (under RH9)
> because I forgot to menuconfig and add in the proper
> settings.
>
> --- Derek Storvik <dstorvik@pf.ueo.ohio-state.edu>
> wrote:
>> Hello all
>> Hopefully someone can see my error.
>> I have been running RH7.3 with it's standard kernal
>> version 2.4.18-3 for several months configured as a
>> transparent bridging firewall. We recently purchased
>> a new machine and wanted to install RH9 with its
>> standard kernal 2.4.20( i think)I followed the same
>> steps installed with iptables and bridging utils and
>> used my same script file to setup the bridge with
>> two nics and fill in all my rules. This didn't seem
>> to work right and on further testing realized
>> NOTHING was being filtered. I then rebooted and
>> manualy set up the bridge and cleared all the tables
>> and set the default policy to drop. SO at this point
>> nothing should get through. Well it bridges
>> everything, and the counters in iptables do not
>> increment. The system acts as if it is not there
>> what so ever.
>>
>> here is the setup after the basic minimal install
>> brctl addbr br0
>> brctl addif br0 eth0
>> brctl addif br0 eth1
>> ifconfig eth1 0.0.0.0 promisc
>> ifconfig eth0 0.0.0.0 promisc
>> #bring up bridge with either of the next two
>> commands
>> ifconfig br0 up
>> ip link set br0 up
>> #both do the same thing namely nothing
>> iptables -X
>> iptables -F
>> iptables -P FORWARD DROP
>> iptables -P INPUT DROP
>> iptables -P OUTPUT DROP
>>
>> This setup happily bridges packets right on through
>> with no updates to the iptables counters.
>>
>> I have been experimenting with devil linux as well
>> recently and it exhibits the same problem.
>>
>> ip_forwarding is set to as it has been on my
>> working rh7.3 machine I tried setting it to 1 but
>> that didn't help the problems. Im not 100% sure what
>> exactl the ip_forwarding property corresponds to
>> anyway.
>>
>> any help would be greatly appreciated!
>> Thanks
>> Derek
>>
>>
>
>
> __________________________________
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now
> http://companion.yahoo.com/
>
>
>
>
Thanks,
Josh Berry, CTO
LinkNet-Solutions
469-831-8543
josh.berry@linknet-solutions.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Iptables not working with RH9
@ 2003-11-24 13:51 Derek Storvik
0 siblings, 0 replies; 7+ messages in thread
From: Derek Storvik @ 2003-11-24 13:51 UTC (permalink / raw)
To: josh.berry; +Cc: netfilter, scottmackay
That's not true. RH7.3 does come with the bridge-nf code enabled.
I have not recompiled the kernel and I can set it up and it works. I just reinstalled rh7.3 last thursday to make sure i hadn't "forgotten" that i had recompiled the kernel and sure enough right after a minimal install I manually setup a bridge and it started bridging the connection then i used iptables to filter and block it and that worked as well.
So it does come with RH7.3 but the fact that you believe it doesn't come on any kernel probably tells me that RH9.0 doesn't have it ( I think mandrake 9.0 comes precompiled with the bridge code as well.)
Thanks Derek
>>> "Josh Berry" <josh.berry@linknet-solutions.com> 11/20/03 08:47PM >>>
The bridge-nf code does not come enabled by default with rh7.3. I don't
think that it comes enabled by default on any kernels.
> I have not custom compiled the kernel. I was first using rh7.3 and it
> works straight out of the box. I assumed that they would not have taken
> that code back out of the precompiled kernel but i suppose they could have
>
> Derek
>
>>>> Scott MacKay <scottmackay@yahoo.com> 11/20/03 11:17AM >>>
> Did you add on the iptables hook for bridging and
> activate all the proper configuration settings?
> I has a similar problem with 2.4.22 (under RH9)
> because I forgot to menuconfig and add in the proper
> settings.
>
> --- Derek Storvik <dstorvik@pf.ueo.ohio-state.edu>
> wrote:
>> Hello all
>> Hopefully someone can see my error.
>> I have been running RH7.3 with it's standard kernal
>> version 2.4.18-3 for several months configured as a
>> transparent bridging firewall. We recently purchased
>> a new machine and wanted to install RH9 with its
>> standard kernal 2.4.20( i think)I followed the same
>> steps installed with iptables and bridging utils and
>> used my same script file to setup the bridge with
>> two nics and fill in all my rules. This didn't seem
>> to work right and on further testing realized
>> NOTHING was being filtered. I then rebooted and
>> manualy set up the bridge and cleared all the tables
>> and set the default policy to drop. SO at this point
>> nothing should get through. Well it bridges
>> everything, and the counters in iptables do not
>> increment. The system acts as if it is not there
>> what so ever.
>>
>> here is the setup after the basic minimal install
>> brctl addbr br0
>> brctl addif br0 eth0
>> brctl addif br0 eth1
>> ifconfig eth1 0.0.0.0 promisc
>> ifconfig eth0 0.0.0.0 promisc
>> #bring up bridge with either of the next two
>> commands
>> ifconfig br0 up
>> ip link set br0 up
>> #both do the same thing namely nothing
>> iptables -X
>> iptables -F
>> iptables -P FORWARD DROP
>> iptables -P INPUT DROP
>> iptables -P OUTPUT DROP
>>
>> This setup happily bridges packets right on through
>> with no updates to the iptables counters.
>>
>> I have been experimenting with devil linux as well
>> recently and it exhibits the same problem.
>>
>> ip_forwarding is set to as it has been on my
>> working rh7.3 machine I tried setting it to 1 but
>> that didn't help the problems. Im not 100% sure what
>> exactl the ip_forwarding property corresponds to
>> anyway.
>>
>> any help would be greatly appreciated!
>> Thanks
>> Derek
>>
>>
>
>
> __________________________________
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now
> http://companion.yahoo.com/
>
>
>
>
Thanks,
Josh Berry, CTO
LinkNet-Solutions
469-831-8543
josh.berry@linknet-solutions.com
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2003-11-24 13:51 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-20 16:29 Iptables not working with RH9 Derek Storvik
2003-11-21 1:47 ` Josh Berry
-- strict thread matches above, loose matches on Subject: below --
2003-11-24 13:51 Derek Storvik
2003-11-20 15:54 Derek Storvik
2003-11-20 16:17 ` Scott MacKay
2003-11-20 17:17 ` Ramin Dousti
2003-11-20 17:53 ` Scott MacKay
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.