> The following ipchains rules are working for kernel 2.2.x. Which are
> the corresponding rules with ipbables and kernel 2.4.x?
> Which modules to load?
> 
> 2.2.x: working
> /sbin/modprobe ip_masq_ftp
> ipchains -P forward DENY
> ipchains -A forward -s 192.168.0.4 -j MASQ
> 
> 
> 2.4.x: my attempt, not working
> /sbin/modprobe ipt_MASQUERADE. parameters should be given here
> ipchains -P forward DENY
> iptables -A POSTROUTING -t nat -p tcp -s 192.168.0.4 -j MASQUERADE

I've not yet tried firewalling with 2.4. Howver, in building kernels I've 
noticed an ipchains compatibility feature. I imagine this allows one to use 
the 2.2 ipchains unaltered.

> 
> Can /etc/rc.d/rc.local do branching, loading one set of rules for
> kernel 2.2.x and another for 2.4.x? If not, other solutions?

[summer@possum summer]$ REL=$(uname -r)
[summer@possum summer]$ echo $REL
2.4.0-test7
[summer@possum summer]$ help test

If you want to use substrings, you may need to ensure that rc.local begins 
"#!/bin/bash"





_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

Reply via email to