Re: Setting up iptables with 2.4.0test11
On Wed, 22 Nov 100 22:11:33 -0500, tim said:
>
> Can someone provide a step by step procedure for configuring
> IP masquerading with iptables with a 2.4.0 kernel.
>
> thanks a lot to anyone taking time to reply.
These are my Netfilter and related options for my kernel:
# Networking options
CONFIG_NETFILTER=y
CONFIG_NETFILTER_DEBUG=y
# IP: Netfilter Configuration
#
CONFIG_IP_NF_CONNTRACK=m
CONFIG_IP_NF_FTP=m
CONFIG_IP_NF_IPTABLES=m
# CONFIG_IP_NF_MATCH_LIMIT is not set
CONFIG_IP_NF_MATCH_MAC=m
CONFIG_IP_NF_MATCH_MARK=m
CONFIG_IP_NF_MATCH_MULTIPORT=m
# CONFIG_IP_NF_MATCH_TOS is not set
CONFIG_IP_NF_MATCH_STATE=m
# CONFIG_IP_NF_MATCH_UNCLEAN is not set
# CONFIG_IP_NF_MATCH_OWNER is not set
CONFIG_IP_NF_FILTER=m
CONFIG_IP_NF_TARGET_REJECT=m
# CONFIG_IP_NF_TARGET_MIRROR is not set
CONFIG_IP_NF_NAT=m
CONFIG_IP_NF_NAT_NEEDED=y
CONFIG_IP_NF_TARGET_MASQUERADE=m
# CONFIG_IP_NF_TARGET_REDIRECT is not set
# CONFIG_IP_NF_MANGLE is not set
CONFIG_IP_NF_TARGET_LOG=m
# CONFIG_IP_NF_COMPAT_IPCHAINS is not set
# CONFIG_IP_NF_COMPAT_IPFWADM is not set
# CONFIG_IPV6 is not set
# CONFIG_KHTTPD is not set
# CONFIG_ATM is not set
When you have compiled the kernel with similar options and installed the
latest Netfilter package, go to
www.linuxhelp.net and check out the iptables script there in the
Tutorials section.
Edit that script to your needs and you are in business.
--
Andrew
Reply to: