[lkml]   [1999]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Enable use of ipfwadm with Kernel 2.2.2.
Good day, An,

On Sat, 24 Apr 1999, An Khanh Duy Nguyen wrote:

> I'm having problems with forwarding packets with kernel 2.2.4.
> IP masquerade used to work in my Red Hat 5.2 kernel 2.0.36 system
> but since I've upraded to kernel 2.2.4, it stopped working. I've checked
> the network configuration options many times and don't think I left
> out any required options. Anyone managed to get IP maquerade to work with
> kernel 2.2.4? Any help would be appreciated.

This thread really belongs on either the ip-masq or the ipchains
list. Please use one of those lists in the future or carry it to private

Try adding the following to /etc/rc.d/rc.local, changing
"" to the appropriate network/netmask for your
internal network. Make sure you have ip forwarding turned on (see the IP
Masquerade resource for instructions on how to do this, or see the
documentation for your distribution.

if [ -f /proc/net/ip_fwchains ]; then
#Place the ipchains versions of your rules here
#Masquerade from internal lan out
/sbin/ipchains -A forward -s -j MASQ
elif [ -f /proc/net/ip_input ]; then
#Place the ipfwadm versions of your rules here.
#Masquerade from internal lan out
/sbin/ipfwadm -F -a accept -m -S

- Bill

References: (mailing list information can be found at these sites)
The IPChains homepage:

The IP Masquerade Resource:

"It is difficult to produce a television documentary that is both
incisive and probing when every twelve minutes one is interrupted by
twelve dancing rabbits singing about toilet paper."
-- Rod Serling
(Courtesy of Dr. G.W. Wettstein <>)
William Stearns (
Mason, Buildkernel, and named2hosts are at:

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:51    [W:0.042 / U:0.900 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site