Skip to contentSkip to conversation

kernel2.6.2-3 + iptables/shorewall

DISCUSSION Richard Bown 3 participants 7 messages Feb 19, 2004

lore
Share & tools
lore
#0 lore raw

Hi
having a real headach with this
Running kernel-2.6.2-3mdk patched for win4lin
iptables 1.2.9-5mdk
shorewall 1.4.8-3mdk
modules loaded are :-
ipt_TOS 2240 0 - Live 0xe197f000
ipt_REJECT 6464 0 - Live 0xe198e000
ipt_LOG 5312 0 - Live 0xe198b000
ipt_state 1728 2 - Live 0xe1985000
ipt_multiport 1856 0 - Live 0xe1983000
ipt_conntrack 2304 0 - Live 0xe1981000
iptable_filter 2624 1 - Live 0xe1932000
iptable_mangle 2624 0 - Live 0xe18d2000
iptable_nat 23116 1 ipt_MASQUERADE, Live 0xe18c3000
ip_conntrack 31120 4 ipt_MASQUERADE,ipt_state,ipt_conntrack,iptable_nat,
Live 0xe1963000
ip_tables 16704 10 ipt_MASQUERADE,ipt_TOS,ipt_REJECT,ipt_LOG,ipt_state,ipt_multiport,ipt_conntrack,iptable_filter,iptable_mangle,iptable_nat, Live 0xe1952000

now in the 2.4 series kernels if I remember right you could turn /off IPV4 forwarding, I hav'nt found this at all in the config file on a 2.6.2 kernel.
So as you guys are more at the iptables end, is anyone successfully getting MASQ,& DNAT functional with a 2.6.2 kernel, and maybe on a mandrake system :)

Thanks
Richard

Signature · 1 line
Richard Bown <[email protected]>
#1 lore raw

Yes, i have at least 4 firewalls running SNAT and DNAT with 2.6.2 and iptables 1.2.9 without any problem. (using redhat 8,9 or debian)

IP forwarding could be enabled and disabled at

/proc/sys/net/ipv4/ip_forward if this is your question

Quoted 30 lines · Richard Bown

Hi
having a real headach with this
Running kernel-2.6.2-3mdk patched for win4lin
iptables 1.2.9-5mdk
shorewall 1.4.8-3mdk
modules loaded are :-
ipt_TOS 2240 0 - Live 0xe197f000
ipt_REJECT 6464 0 - Live 0xe198e000
ipt_LOG 5312 0 - Live 0xe198b000
ipt_state 1728 2 - Live 0xe1985000
ipt_multiport 1856 0 - Live 0xe1983000
ipt_conntrack 2304 0 - Live 0xe1981000
iptable_filter 2624 1 - Live 0xe1932000
iptable_mangle 2624 0 - Live 0xe18d2000
iptable_nat 23116 1 ipt_MASQUERADE, Live 0xe18c3000
ip_conntrack 31120 4 ipt_MASQUERADE,ipt_state,ipt_conntrack,iptable_nat,
Live 0xe1963000
ip_tables 16704 10 ipt_MASQUERADE,ipt_TOS,ipt_REJECT,ipt_LOG,ipt_state,ipt_multiport,ipt_conntrack,iptable_filter,iptable_mangle,iptable_nat, Live 0xe1952000

now in the 2.4 series kernels if I remember right you could turn /off IPV4 forwarding, I hav'nt found this at all in the config file on a 2.6.2 kernel.
So as you guys are more at the iptables end, is anyone successfully getting MASQ,& DNAT functional with a 2.6.2 kernel, and maybe on a mandrake system :)

Thanks
Richard

Signature · 1 line
Alexis <[email protected]>
#5 lore raw
In reply to Richard Bown
Quoted 22 lines · Richard Bown

Hi
having a real headach with this
Running kernel-2.6.2-3mdk patched for win4lin
iptables 1.2.9-5mdk
shorewall 1.4.8-3mdk
modules loaded are :-
ipt_TOS 2240 0 - Live 0xe197f000
ipt_REJECT 6464 0 - Live 0xe198e000
ipt_LOG 5312 0 - Live 0xe198b000
ipt_state 1728 2 - Live 0xe1985000
ipt_multiport 1856 0 - Live 0xe1983000
ipt_conntrack 2304 0 - Live 0xe1981000
iptable_filter 2624 1 - Live 0xe1932000
iptable_mangle 2624 0 - Live 0xe18d2000
iptable_nat 23116 1 ipt_MASQUERADE, Live 0xe18c3000 ip_conntrack 31120 4 ipt_MASQUERADE,ipt_state,ipt_conntrack,iptable_nat, Live 0xe1963000
ip_tables 16704 10 ipt_MASQUERADE,ipt_TOS,ipt_REJECT,ipt_LOG,ipt_state,ipt_multiport,ipt_connt rack,iptable_filter,iptable_mangle,iptable_nat, Live 0xe1952000

Quoted 6 lines

now in the 2.4 series kernels if I remember right you could turn /off IPV4 forwarding, I hav'nt found this at all in the config file on a 2.6.2 kernel.
So as you guys are more at the iptables end, is anyone successfully getting MASQ,& DNAT functional with a 2.6.2 kernel, and maybe on a mandrake system :)

As I announced the other day, I am able to run 2.6.2 with a fairly complex setup (http://www.shorewall.net/myfiles2.htm) without problems. That is under Debian Sarge (although the first 2.6.2 kernel that I successfully tested was built on a Mandrake 9.0 box).

-Tom

Signature · 3 lines
Tom Eastep    \ Nothing is foolproof to a sufficiently talented fool
Shoreline,     \ http://shorewall.net
Washington USA  \ [email protected]
#2 lore raw
In reply to Alexis

Thanks Alexis

Quoted 2 lines · Alexis

Yes, i have at least 4 firewalls running SNAT and DNAT with 2.6.2 and iptables 1.2.9 without any problem. (using redhat 8,9 or debian)

Are you masquerading as well ?

Quoted 2 lines

I'm getting suspicious this could be a mandrake thing, as the lib iptables is split in to two sections , vanilla and mandrake depending on whether a 2.4 or 2.6 kernel is used a sym link points at the libs.

Quoted 4 lines

IP forwarding could be enabled and disabled at

/proc/sys/net/ipv4/ip_forward if this is your question

this is set to 1, so enabled

Quoted 1 line

Richard

Quoted 33 lines · Richard Bown
Quoted 30 lines

Hi
having a real headach with this
Running kernel-2.6.2-3mdk patched for win4lin
iptables 1.2.9-5mdk
shorewall 1.4.8-3mdk
modules loaded are :-
ipt_TOS 2240 0 - Live 0xe197f000
ipt_REJECT 6464 0 - Live 0xe198e000
ipt_LOG 5312 0 - Live 0xe198b000
ipt_state 1728 2 - Live 0xe1985000
ipt_multiport 1856 0 - Live 0xe1983000
ipt_conntrack 2304 0 - Live 0xe1981000
iptable_filter 2624 1 - Live 0xe1932000
iptable_mangle 2624 0 - Live 0xe18d2000
iptable_nat 23116 1 ipt_MASQUERADE, Live 0xe18c3000
ip_conntrack 31120 4 ipt_MASQUERADE,ipt_state,ipt_conntrack,iptable_nat,
Live 0xe1963000
ip_tables 16704 10 ipt_MASQUERADE,ipt_TOS,ipt_REJECT,ipt_LOG,ipt_state,ipt_multiport,ipt_conntrack,iptable_filter,iptable_mangle,iptable_nat, Live 0xe1952000

now in the 2.4 series kernels if I remember right you could turn /off IPV4 forwarding, I hav'nt found this at all in the config file on a 2.6.2 kernel.
So as you guys are more at the iptables end, is anyone successfully getting MASQ,& DNAT functional with a 2.6.2 kernel, and maybe on a mandrake system :)

Thanks
Richard

Signature · 1 line
Richard Bown <[email protected]>
#3 lore raw
Quoted 7 lines · Richard Bown

Thanks Alexis

Quoted 2 lines · Alexis

Yes, i have at least 4 firewalls running SNAT and DNAT with 2.6.2 and iptables 1.2.9 without any problem. (using redhat 8,9 or debian)

Are you masquerading as well ?

No, i dont because all are fixed ip pools that the provideres give me

Quoted 3 lines

I'm getting suspicious this could be a mandrake thing, as the lib iptables is split in to two sections , vanilla and mandrake depending on whether a 2.4 or 2.6 kernel is used a sym link points at the libs.

I dont know mandrake ive never used, my choice is always the same, debian.
But some customers asks for redhat so "the customer is always right" :)

Quoted 5 lines
Quoted 3 lines

IP forwarding could be enabled and disabled at

/proc/sys/net/ipv4/ip_forward if this is your question

this is set to 1, so enabled

yes it is, wich is the policy for the FORWARD chain?

Quoted 34 lines

Richard

Quoted 33 lines · Richard Bown
Quoted 30 lines

Hi
having a real headach with this
Running kernel-2.6.2-3mdk patched for win4lin
iptables 1.2.9-5mdk
shorewall 1.4.8-3mdk
modules loaded are :-
ipt_TOS 2240 0 - Live 0xe197f000
ipt_REJECT 6464 0 - Live 0xe198e000
ipt_LOG 5312 0 - Live 0xe198b000
ipt_state 1728 2 - Live 0xe1985000
ipt_multiport 1856 0 - Live 0xe1983000
ipt_conntrack 2304 0 - Live 0xe1981000
iptable_filter 2624 1 - Live 0xe1932000
iptable_mangle 2624 0 - Live 0xe18d2000
iptable_nat 23116 1 ipt_MASQUERADE, Live 0xe18c3000
ip_conntrack 31120 4 ipt_MASQUERADE,ipt_state,ipt_conntrack,iptable_nat,
Live 0xe1963000
ip_tables 16704 10 ipt_MASQUERADE,ipt_TOS,ipt_REJECT,ipt_LOG,ipt_state,ipt_multiport,ipt_conntrack,iptable_filter,iptable_mangle,iptable_nat, Live 0xe1952000

now in the 2.4 series kernels if I remember right you could turn /off IPV4 forwarding, I hav'nt found this at all in the config file on a 2.6.2 kernel.
So as you guys are more at the iptables end, is anyone successfully getting MASQ,& DNAT functional with a 2.6.2 kernel, and maybe on a mandrake system :)

Thanks
Richard

Signature · 1 line
Alexis <[email protected]>
#4 lore raw
In reply to Alexis
Quoted 9 lines · Alexis

Yes, i have at least 4 firewalls running SNAT and DNAT with 2.6.2 and iptables 1.2.9 without any problem. (using redhat 8,9 or debian)

IP forwarding could be enabled and disabled at

/proc/sys/net/ipv4/ip_forward if this is your question

Which in turn is controlled by IP_FORWARDING in shorewall.conf.

-Tom

Signature · 3 lines
Tom Eastep    \ Nothing is foolproof to a sufficiently talented fool
Shoreline,     \ http://shorewall.net
Washington USA  \ [email protected]
#6 lore raw
In reply to Tom Eastep
Quoted 4 lines · Tom Eastep

On Thursday 19 February 2004 06:48 am, Richard Bown wrote:

(although the first 2.6.2 kernel that I successfully tested was built on a Mandrake 9.0 box).

Correction -- it's running Drake 9.2.

-Tom

Signature · 3 lines
Tom Eastep    \ Nothing is foolproof to a sufficiently talented fool
Shoreline,     \ http://shorewall.net
Washington USA  \ [email protected]