Hoi,
Ik heb vandaag de nieuwste kernel geinstalleerd 2.4.14
Nu heb ik al een tijdje een simpele firewall die hier volgt voor de duidelijkheid:
#!/bin/sh
# rc.firewall-2.4
FWVER=0.62
echo -e "\n\nLoading simple rc.firewall version $FWVER..\n"
#
IPTABLES=/sbin/iptables
#
EXTIF="eth0"
INTIF="eth1"
echo " External Interface: $EXTIF"
echo " Internal Interface: $INTIF"
#
echo -en " loading modules: "
echo " - Verifying that all kernel modules are ok"
/sbin/depmod -a
echo -en "ip_tables, "
/sbin/insmod ip_tables
#Load the stateful connection tracking framework - "ip_conntrack"
echo -en "ip_conntrack, "
/sbin/insmod ip_conntrack
#Load the FTP tracking mechanism for full FTP tracking
echo -en "ip_conntrack_ftp, "
/sbin/insmod ip_conntrack_ftp
#Load the general IPTABLES NAT code - "iptable_nat"
echo -en "iptable_nat, "
/sbin/insmod iptable_nat
#Loads the FTP NAT functionality into the core IPTABLES code
echo -en "ip_nat_ftp, "
/sbin/insmod ip_nat_ftp
#Loads the irc NAT functionality into the core IPTABLEs code
echo -en "ip_nat_irc, "
/sbin/insmod ip_nat_irc
echo ". Done loading modules."
#CRITICAL: Enable IP forwarding since it is disabled by default since
echo " enabling forwarding.."
echo "1" > /proc/sys/net/ipv4/ip_forward
# Dynamic IP users:
echo " enabling DynamicAddr.."
echo "1" > /proc/sys/net/ipv4/ip_dynaddr
# Enable simple IP forwarding and Masquerading
echo " clearing any existing rules and setting default policy.."
$IPTABLES -P INPUT ACCEPT
$IPTABLES -F INPUT
$IPTABLES -P OUTPUT ACCEPT
$IPTABLES -F OUTPUT
$IPTABLES -P FORWARD DROP
$IPTABLES -F FORWARD
$IPTABLES -t nat -F
echo " FWD: Allow all connections OUT and only existing and related ones IN"
$IPTABLES -A FORWARD -i $EXTIF -o $INTIF -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A FORWARD -i $INTIF -o $EXTIF -j ACCEPT
$IPTABLES -A FORWARD -j LOG
echo " Enabling SNAT (MASQUERADE) functionality on $EXTIF"
$IPTABLES -t nat -A POSTROUTING -o $EXTIF -j MASQUERADE
echo -e "\nDone.\n"
Mijn bedoeling was om te kunnen IRC'en via de firewall (dus DCC send + DCC chat). Ik heb daarom die nieuwe kernel gebakken incl. ip_nat_irc ondersteuning (als module).
Nadat ik (zie firewall) insmod ip_nat_irc heb toegevoegd, bleek het alsnog niet te werken. Toen ik 't scriptje handmatig had opgestart kreeg ik dit te zien:
Loading simple rc.firewall version 0.62..
External Interface: eth0
Internal Interface: eth1
loading modules: - Verifying that all kernel modules are ok
ip_tables, Using /lib/modules/2.4.14/kernel/net/ipv4/netfilter/ip_tables.o
insmod: a module named ip_tables already exists
ip_conntrack, Using /lib/modules/2.4.14/kernel/net/ipv4/netfilter/ip_conntrack.o
insmod: a module named ip_conntrack already exists
ip_conntrack_ftp, Using /lib/modules/2.4.14/kernel/net/ipv4/netfilter/ip_conntrack_ftp.o
insmod: a module named ip_conntrack_ftp already exists
iptable_nat, Using /lib/modules/2.4.14/kernel/net/ipv4/netfilter/iptable_nat.o
insmod: a module named iptable_nat already exists
ip_nat_ftp, Using /lib/modules/2.4.14/kernel/net/ipv4/netfilter/ip_nat_ftp.o
insmod: a module named ip_nat_ftp already exists
ip_nat_irc, Using /lib/modules/2.4.14/kernel/net/ipv4/netfilter/ip_nat_irc.o
/lib/modules/2.4.14/kernel/net/ipv4/netfilter/ip_nat_irc.o: unresolved symbol ip_irc_lock
. Done loading modules.
enabling forwarding..
enabling DynamicAddr..
clearing any existing rules and setting default policy..
FWD: Allow all connections OUT and only existing and related ones IN
Enabling SNAT (MASQUERADE) functionality on eth0
Done.
Let vooral op -> unresolved symbol ip_irc_lock!!
Mijn vraag is dus of iemand weet waar dit aan ligt, en hoe het evt verholpen kan worden?
Bij voorbaat dank!
Ik heb vandaag de nieuwste kernel geinstalleerd 2.4.14
Nu heb ik al een tijdje een simpele firewall die hier volgt voor de duidelijkheid:
#!/bin/sh
# rc.firewall-2.4
FWVER=0.62
echo -e "\n\nLoading simple rc.firewall version $FWVER..\n"
#
IPTABLES=/sbin/iptables
#
EXTIF="eth0"
INTIF="eth1"
echo " External Interface: $EXTIF"
echo " Internal Interface: $INTIF"
#
echo -en " loading modules: "
echo " - Verifying that all kernel modules are ok"
/sbin/depmod -a
echo -en "ip_tables, "
/sbin/insmod ip_tables
#Load the stateful connection tracking framework - "ip_conntrack"
echo -en "ip_conntrack, "
/sbin/insmod ip_conntrack
#Load the FTP tracking mechanism for full FTP tracking
echo -en "ip_conntrack_ftp, "
/sbin/insmod ip_conntrack_ftp
#Load the general IPTABLES NAT code - "iptable_nat"
echo -en "iptable_nat, "
/sbin/insmod iptable_nat
#Loads the FTP NAT functionality into the core IPTABLES code
echo -en "ip_nat_ftp, "
/sbin/insmod ip_nat_ftp
#Loads the irc NAT functionality into the core IPTABLEs code
echo -en "ip_nat_irc, "
/sbin/insmod ip_nat_irc
echo ". Done loading modules."
#CRITICAL: Enable IP forwarding since it is disabled by default since
echo " enabling forwarding.."
echo "1" > /proc/sys/net/ipv4/ip_forward
# Dynamic IP users:
echo " enabling DynamicAddr.."
echo "1" > /proc/sys/net/ipv4/ip_dynaddr
# Enable simple IP forwarding and Masquerading
echo " clearing any existing rules and setting default policy.."
$IPTABLES -P INPUT ACCEPT
$IPTABLES -F INPUT
$IPTABLES -P OUTPUT ACCEPT
$IPTABLES -F OUTPUT
$IPTABLES -P FORWARD DROP
$IPTABLES -F FORWARD
$IPTABLES -t nat -F
echo " FWD: Allow all connections OUT and only existing and related ones IN"
$IPTABLES -A FORWARD -i $EXTIF -o $INTIF -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A FORWARD -i $INTIF -o $EXTIF -j ACCEPT
$IPTABLES -A FORWARD -j LOG
echo " Enabling SNAT (MASQUERADE) functionality on $EXTIF"
$IPTABLES -t nat -A POSTROUTING -o $EXTIF -j MASQUERADE
echo -e "\nDone.\n"
Mijn bedoeling was om te kunnen IRC'en via de firewall (dus DCC send + DCC chat). Ik heb daarom die nieuwe kernel gebakken incl. ip_nat_irc ondersteuning (als module).
Nadat ik (zie firewall) insmod ip_nat_irc heb toegevoegd, bleek het alsnog niet te werken. Toen ik 't scriptje handmatig had opgestart kreeg ik dit te zien:
Loading simple rc.firewall version 0.62..
External Interface: eth0
Internal Interface: eth1
loading modules: - Verifying that all kernel modules are ok
ip_tables, Using /lib/modules/2.4.14/kernel/net/ipv4/netfilter/ip_tables.o
insmod: a module named ip_tables already exists
ip_conntrack, Using /lib/modules/2.4.14/kernel/net/ipv4/netfilter/ip_conntrack.o
insmod: a module named ip_conntrack already exists
ip_conntrack_ftp, Using /lib/modules/2.4.14/kernel/net/ipv4/netfilter/ip_conntrack_ftp.o
insmod: a module named ip_conntrack_ftp already exists
iptable_nat, Using /lib/modules/2.4.14/kernel/net/ipv4/netfilter/iptable_nat.o
insmod: a module named iptable_nat already exists
ip_nat_ftp, Using /lib/modules/2.4.14/kernel/net/ipv4/netfilter/ip_nat_ftp.o
insmod: a module named ip_nat_ftp already exists
ip_nat_irc, Using /lib/modules/2.4.14/kernel/net/ipv4/netfilter/ip_nat_irc.o
/lib/modules/2.4.14/kernel/net/ipv4/netfilter/ip_nat_irc.o: unresolved symbol ip_irc_lock
. Done loading modules.
enabling forwarding..
enabling DynamicAddr..
clearing any existing rules and setting default policy..
FWD: Allow all connections OUT and only existing and related ones IN
Enabling SNAT (MASQUERADE) functionality on eth0
Done.
Let vooral op -> unresolved symbol ip_irc_lock!!
Mijn vraag is dus of iemand weet waar dit aan ligt, en hoe het evt verholpen kan worden?
Bij voorbaat dank!