LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-08-2009, 05:15 AM   #1
ytd
Member
 
Registered: Jan 2009
Posts: 205

Rep: Reputation: 31
iptables doesn't work


iptables -A INPUT -p tcp -m connlimit --connlimit-above 2 -j DROP

iptables: No chain/target/match by that name

What do I need to do ?

The chain INPUT exist, and other rule like the one below, it works. So what's wrong ? What do I need to do ?

iptables -I INPUT -p tcp --dport 21 -j DROP

It is a CentOS 5 server.

Last edited by ytd; 12-08-2009 at 05:21 AM.
 
Old 12-08-2009, 06:34 AM   #2
beadyallen
Member
 
Registered: Mar 2008
Location: UK
Distribution: Fedora, Gentoo
Posts: 209

Rep: Reputation: 36
What distro are you using? My guess would be that you don't have the connlimit match available. Check to see if you've got the xt_connlimit kernel module available. There's nothing wrong with your command syntax, so it's probably just that you need to install an extra package.
 
Old 12-08-2009, 06:40 AM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Did you try
Code:
modprobe ipt_limit
Does
Code:
iptables -m connlimit -h
show the
connlimit match options ?

Last edited by repo; 12-08-2009 at 06:42 AM.
 
Old 12-08-2009, 06:41 AM   #4
ytd
Member
 
Registered: Jan 2009
Posts: 205

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by beadyallen View Post
What distro are you using? My guess would be that you don't have the connlimit match available. Check to see if you've got the xt_connlimit kernel module available. There's nothing wrong with your command syntax, so it's probably just that you need to install an extra package.
It is a CentOS 5 server. 2.6.9-55.0.9.ELsmp #1 SMP

How and where do I need to check if the xt_connlimit kernel module is available and if it's not available, what do I need to do ?

[root@xxx]# cd /proc/net
[root@xxx]# ls
anycast6 dev_snmp6 ip6_flowlabel ip_tables_names mcfilter6 psched rpc snmp softnet_stat tr_rif wireless
arp if_inet6 ip_mr_cache ip_tables_targets netlink raw rt6_stats snmp6 stat udp
dev igmp ip_mr_vif ipv6_route netstat raw6 rt_acct sockstat tcp udp6
dev_mcast igmp6 ip_tables_matches mcfilter packet route rt_cache sockstat6 tcp6 unix

in ip_tables_matches are tcp udp and icmp

Last edited by ytd; 12-08-2009 at 06:43 AM.
 
Old 12-08-2009, 06:45 AM   #5
ytd
Member
 
Registered: Jan 2009
Posts: 205

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by repo View Post
Did you try
Code:
modprobe ipt_limit
Does
Code:
iptables -m connlimit -h
show the
connlimit match options ?

[root@xxx]#
[root@xxx]# modprobe ipt_limit
[root@xxx]#
It dosen't show anything.

[root@xxx]# iptables -m connlimit -h
iptables v1.2.11

Usage: iptables -[AD] chain rule-specification [options]
iptables -[RI] chain rulenum rule-specification [options]
iptables -D chain rulenum [options]
iptables -[LFZ] [chain] [options]
iptables -[NX] chain
iptables -E old-chain-name new-chain-name
iptables -P chain target [options]
iptables -h (print this help information)

Commands:
Either long or short options are allowed.
--append -A chain Append to chain
--delete -D chain Delete matching rule from chain
--delete -D chain rulenum
Delete rule rulenum (1 = first) from chain
--insert -I chain [rulenum]
Insert in chain as rulenum (default 1=first)
--replace -R chain rulenum
Replace rule rulenum (1 = first) in chain
--list -L [chain] List the rules in a chain or all chains
--flush -F [chain] Delete all rules in chain or all chains
--zero -Z [chain] Zero counters in chain or all chains
--new -N chain Create a new user-defined chain
--delete-chain
-X [chain] Delete a user-defined chain
--policy -P chain target
Change policy on chain to target
--rename-chain
-E old-chain new-chain
Change chain name, (moving any references)
Options:
--proto -p [!] proto protocol: by number or name, eg. `tcp'
--source -s [!] address[/mask]
source specification
--destination -d [!] address[/mask]
destination specification
--in-interface -i [!] input name[+]
network interface name ([+] for wildcard)
--jump -j target
target for rule (may load target extension)
--match -m match
extended match (may load extension)
--numeric -n numeric output of addresses and ports
--out-interface -o [!] output name[+]
network interface name ([+] for wildcard)
--table -t table table to manipulate (default: `filter')
--verbose -v verbose mode
--line-numbers print line numbers when listing
--exact -x expand numbers (display exact values)
[!] --fragment -f match second or further fragments only
--modprobe=<command> try to insert modules using this command
--set-counters PKTS BYTES set the counter during insert/append
[!] --version -V print package version.

connlimit v1.2.11 options:
[!] --connlimit-above n match if the number of existing tcp connections is (not) above n
--connlimit-mask n group hosts using mask


[root@xxx]# yum install iptables
Setting up Install Process
Setting up repositories
update 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
contrib 100% |=========================| 951 B 00:00
centosplus 100% |=========================| 951 B 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 132 kB 00:00
sqlite cache needs updating, reading in metadata
update : ################################################## 409/409
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package iptables.x86_64 0:1.2.11-3.2.RHEL4 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Updating:
iptables x86_64 1.2.11-3.2.RHEL4 base 194 k

Transaction Summary
=============================================================================
Install 0 Package(s)
Update 1 Package(s)
Remove 0 Package(s)
Total download size: 194 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): iptables-1.2.11-3. 100% |=========================| 194 kB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : iptables ######################### [1/2]
Cleanup : iptables ######################### [2/2]

Updated: iptables.x86_64 0:1.2.11-3.2.RHEL4
Complete!
[root@xxx]#

Last edited by ytd; 12-08-2009 at 06:52 AM.
 
Old 12-08-2009, 07:24 AM   #6
beadyallen
Member
 
Registered: Mar 2008
Location: UK
Distribution: Fedora, Gentoo
Posts: 209

Rep: Reputation: 36
Well your iptables help shows that connlimit is available.
To check the module, (even though it looks like the modprobe worked) do an 'lsmod' and look for one called 'con something'.
on my box (Fedora 11), it looks like:
Code:
[root@tmplap ~]# iptables -A INPUT -p tcp -m connlimit --connlimit-above 2 -j DROP
[root@tmplap ~]# lsmod | grep -i con
xt_connlimit            3736  1
 
Old 12-08-2009, 07:35 AM   #7
ytd
Member
 
Registered: Jan 2009
Posts: 205

Original Poster
Rep: Reputation: 31
[root@xxx]#
[root@xxx]# iptables -A INPUT -p tcp -m connlimit --connlimit-above 2 -j DROP
iptables: No chain/target/match by that name
[root@xxx]#
[root@xxx]# lsmod | grep -i con
[root@xxx]#
[root@xxx]# lsmod
Module Size Used by
ipt_limit 4033 0
iptable_filter 4673 1
ip_tables 21825 2 ipt_limit,iptable_filter
md5 5953 1
ipv6 285089 81
parport_pc 29569 0
lp 15345 0
parport 44493 2 parport_pc,lp
autofs4 27081 0
sunrpc 176313 1
ds 21705 0
yenta_socket 23105 0
pcmcia_core 69969 2 ds,yenta_socket
button 9313 0
battery 11465 0
ac 6985 0
uhci_hcd 35305 0
ehci_hcd 33989 0
tg3 111557 0
dm_snapshot 18945 0
dm_zero 3649 0
dm_mirror 31945 0
ext3 138193 2
jbd 69233 1 ext3
dm_mod 73513 8 dm_snapshot,dm_zero,dm_mirror
ata_piix 18629 0
libata 124584 1 ata_piix
mptscsih 2625 0
mptsas 16973 4 mptscsih
mptspi 11985 1 mptscsih
mptfc 10437 0
mptscsi 43217 3 mptsas,mptspi,mptfc
mptbase 68673 4 mptsas,mptspi,mptfc,mptscsi
sd_mod 19393 4
scsi_mod 144529 6 libata,mptsas,mptspi,mptfc,mptscsi,sd_mod
[root@xxx]#
[root@xxx]#
 
Old 12-08-2009, 07:42 AM   #8
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Try to flush the rules
Code:
iptables -F
then
Code:
iptables -L
iptables -A INPUT -p tcp -m connlimit --connlimit-above 2 -j DROP
iptables -L
 
Old 12-08-2009, 08:03 AM   #9
ytd
Member
 
Registered: Jan 2009
Posts: 205

Original Poster
Rep: Reputation: 31
[root@xxx]#
[root@xxx]# iptables -F
[root@xxx]#
[root@xxx]#
[root@xxx]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@xxx]#
[root@xxx]# iptables -A INPUT -p tcp -m connlimit --connlimit-above 2 -j DROP
iptables: No chain/target/match by that name
[root@xxx]#
 
Old 12-08-2009, 08:11 AM   #10
ytd
Member
 
Registered: Jan 2009
Posts: 205

Original Poster
Rep: Reputation: 31
I'm using default iptables with default uncompiled kernel.

Do I need to compile the kernel ?
Thing is, the server is very importand, and I don't want any major changes, so I don't want to compile or to make big changes to the server since it's working ok. It is a server at work, and... I rather prefer to leave it this way than to make changes to it and crush it, or something liek that.
 
Old 12-08-2009, 08:18 AM   #11
beadyallen
Member
 
Registered: Mar 2008
Location: UK
Distribution: Fedora, Gentoo
Posts: 209

Rep: Reputation: 36
I can't believe centos doesn't have connlimit available (but I'm not using it so I can't be sure).
Google threw up this link which should avoid having to rebuild the kernel. You could give it a try.

edit: See here. Looks like you'll have to build it. Never new connlimit was so 'new'.

Last edited by beadyallen; 12-08-2009 at 08:19 AM.
 
Old 12-09-2009, 12:30 AM   #12
ytd
Member
 
Registered: Jan 2009
Posts: 205

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by beadyallen View Post
I can't believe centos doesn't have connlimit available (but I'm not using it so I can't be sure).
Google threw up this link which should avoid having to rebuild the kernel. You could give it a try.

edit: See here. Looks like you'll have to build it. Never new connlimit was so 'new'.
Alright, i'm gonna do some tests later, now i'm a bit busy. I'll keep you in touch, gonna reply in a few days.
 
Old 12-09-2009, 12:46 AM   #13
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
try --limit instead of --connlimit; here's a working example of --limit (This is ONE LINE-- I broke the line in half for readability):
Code:
-A TCP-ACCEPT-C -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG SYN
-m state --state NEW,RELATED,ESTABLISHED -m limit --limit 40/sec --limit-burst 10 -j ACCEPT
Sasha
 
1 members found this post helpful.
Old 12-10-2009, 01:30 AM   #14
ytd
Member
 
Registered: Jan 2009
Posts: 205

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by GrapefruiTgirl View Post
try --limit instead of --connlimit; here's a working example of --limit (This is ONE LINE-- I broke the line in half for readability):
Code:
-A TCP-ACCEPT-C -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG SYN
-m state --state NEW,RELATED,ESTABLISHED -m limit --limit 40/sec --limit-burst 10 -j ACCEPT
Sasha
iptables -A TCP-ACCEPT-C -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG SYN -m state --state NEW,RELATED,ESTABLISHED -m limit --limit 40/sec

[root@xxx]#
[root@xxx]# iptables -A TCP-ACCEPT-C -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG SYN -m state --state NEW,RELATED,ESTABLISHED -m limit --limit 2/sec
iptables: No chain/target/match by that name
[root@xxx]#
[root@xxx]#
[root@xxx]# iptables
iptables v1.2.11: no command specified
Try `iptables -h' or 'iptables --help' for more information.
[root@xxx]#


I think I need a new version of iptables, it has v1.2.11 and I see that the latest version of iptables is 1.4.6
I tried to install iptables 1.4.6, downloaded it from here:

http://www.netfilter.org/news.html#2009-12-09
and tried to install with these steps from here:
http://wendt.wisc.edu/site/public/?title=liniptables
http://www.cae.wisc.edu/iptables-installing

but it didn't work, or atleast I don't think it worked. Maybe it needs a reboot ? Here's the log with what I did:

[root@xxx]# cd /
[root@xxx]#
[root@xxx]# pwd
/
[root@xxx]#
[root@xxx]# ls
backup boot dev home infx_up iptables-1.4.6.tar.bz2 lib64 media mnt proc sbin srv tmp var
bin danielbackup etc INFORMIXTMP initrd lib lost+found misc opt root selinux sys usr work
[root@xxx]#
[root@xxx]#
[root@xxx]#
[root@xxx]# tar -xvjf ./iptables-1.4.6.tar.bz2 -C /usr/src
I cannot copy the whole window text and I cuted the "log".
iptables-1.4.6/include/linux/netfilter_ipv4/ipt_TOS.h
iptables-1.4.6/include/linux/netfilter_ipv4/ipt_TTL.h
iptables-1.4.6/include/linux/netfilter_ipv4/ipt_set.h
iptables-1.4.6/include/linux/netfilter_ipv4/ipt_tos.h
iptables-1.4.6/include/linux/netfilter_ipv4/ipt_owner.h
iptables-1.4.6/include/linux/netfilter_ipv4/ipt_policy.h
iptables-1.4.6/include/linux/netfilter_ipv4/ipt_iprange.h
iptables-1.4.6/include/linux/netfilter_ipv4.h
iptables-1.4.6/include/xtables.h.in
iptables-1.4.6/include/ip6tables.h
iptables-1.4.6/include/libiptc/
iptables-1.4.6/include/libiptc/libiptc.h
iptables-1.4.6/include/libiptc/libip6tc.h
iptables-1.4.6/include/libiptc/ipt_kernel_headers.h
iptables-1.4.6/include/libiptc/libxtc.h
iptables-1.4.6/include/iptables/
iptables-1.4.6/include/iptables/internal.h.in
iptables-1.4.6/include/libipq/
iptables-1.4.6/include/libipq/libipq.h
iptables-1.4.6/include/Makefile.in
iptables-1.4.6/include/iptables.h
iptables-1.4.6/include/Makefile.am
iptables-1.4.6/include/libipulog/
iptables-1.4.6/include/libipulog/libipulog.h
iptables-1.4.6/include/net/
iptables-1.4.6/include/net/netfilter/
iptables-1.4.6/include/net/netfilter/nf_conntrack_tuple.h
iptables-1.4.6/include/net/netfilter/nf_nat.h
iptables-1.4.6/iptables-xml.8
iptables-1.4.6/config.h.in
iptables-1.4.6/libiptc.pc.in
iptables-1.4.6/libiptc/
iptables-1.4.6/libiptc/linux_list.h
iptables-1.4.6/libiptc/linux_stddef.h
iptables-1.4.6/libiptc/libip6tc.c
iptables-1.4.6/libiptc/libiptc.c
iptables-1.4.6/libiptc/libip4tc.c
iptables-1.4.6/libipq/
iptables-1.4.6/libipq/ipq_destroy_handle.3
iptables-1.4.6/libipq/ipq_errstr.3
iptables-1.4.6/libipq/ipq_read.3
iptables-1.4.6/libipq/ipq_perror.3
iptables-1.4.6/libipq/ipq_set_mode.3
iptables-1.4.6/libipq/Makefile.in
iptables-1.4.6/libipq/ipq_message_type.3
iptables-1.4.6/libipq/ipq_get_msgerr.3
iptables-1.4.6/libipq/Makefile.am
iptables-1.4.6/libipq/libipq.3
iptables-1.4.6/libipq/libipq.c
iptables-1.4.6/libipq/ipq_set_verdict.3
iptables-1.4.6/libipq/ipq_get_packet.3
iptables-1.4.6/libipq/ipq_create_handle.3
iptables-1.4.6/iptables-standalone.c
iptables-1.4.6/install-sh
iptables-1.4.6/iptables-restore.8
iptables-1.4.6/Makefile.in
iptables-1.4.6/extensions/
iptables-1.4.6/extensions/libxt_rateest.c
iptables-1.4.6/extensions/libxt_SECMARK.c
iptables-1.4.6/extensions/libxt_recent.c
iptables-1.4.6/extensions/libip6t_dst.man
iptables-1.4.6/extensions/libxt_limit.c
iptables-1.4.6/extensions/libxt_owner.man
iptables-1.4.6/extensions/libxt_TCPMSS.man
iptables-1.4.6/extensions/libipt_ULOG.c
iptables-1.4.6/extensions/libxt_iprange.c
iptables-1.4.6/extensions/libip6t_eui64.man
iptables-1.4.6/extensions/libxt_MARK.man
iptables-1.4.6/extensions/libxt_RATEEST.man
iptables-1.4.6/extensions/libipt_CLUSTERIP.c
iptables-1.4.6/extensions/libxt_NFQUEUE.c
iptables-1.4.6/extensions/libxt_tcpmss.c
iptables-1.4.6/extensions/libxt_time.c
iptables-1.4.6/extensions/libipt_REJECT.c
iptables-1.4.6/extensions/libxt_statistic.c
iptables-1.4.6/extensions/libipt_ttl.c
iptables-1.4.6/extensions/libxt_NFLOG.c
iptables-1.4.6/extensions/libipt_SAME.man
iptables-1.4.6/extensions/libip6t_rt.c
iptables-1.4.6/extensions/libxt_CONNMARK.c
iptables-1.4.6/extensions/libipt_set.man
iptables-1.4.6/extensions/libxt_CLASSIFY.man
iptables-1.4.6/extensions/libxt_multiport.man
iptables-1.4.6/extensions/libxt_dccp.man
iptables-1.4.6/extensions/libip6t_icmp6.c
iptables-1.4.6/extensions/libxt_pkttype.c
iptables-1.4.6/extensions/libxt_helper.c
iptables-1.4.6/extensions/libxt_helper.man
iptables-1.4.6/extensions/libip6t_HL.man
iptables-1.4.6/extensions/libipt_MIRROR.c
iptables-1.4.6/extensions/libipt_NETMAP.man
iptables-1.4.6/extensions/libipt_REDIRECT.c
iptables-1.4.6/extensions/libip6t_icmp6.man
iptables-1.4.6/extensions/libxt_esp.c
iptables-1.4.6/extensions/libxt_multiport.c
iptables-1.4.6/extensions/libxt_string.c
iptables-1.4.6/extensions/libxt_connmark.c
iptables-1.4.6/extensions/libxt_CLASSIFY.c
iptables-1.4.6/extensions/libipt_unclean.c
iptables-1.4.6/extensions/libxt_connbytes.c
iptables-1.4.6/extensions/libipt_ULOG.man
iptables-1.4.6/extensions/GNUmakefile.in
iptables-1.4.6/extensions/libxt_physdev.man
iptables-1.4.6/extensions/libxt_standard.c
iptables-1.4.6/extensions/libxt_u32.c
iptables-1.4.6/extensions/libxt_CONNSECMARK.c
iptables-1.4.6/extensions/libip6t_hbh.man
iptables-1.4.6/extensions/libxt_mac.man
iptables-1.4.6/extensions/libxt_dscp.c
iptables-1.4.6/extensions/libip6t_frag.c
iptables-1.4.6/extensions/libxt_rateest.man
iptables-1.4.6/extensions/libxt_conntrack.c
iptables-1.4.6/extensions/dscp_helper.c
iptables-1.4.6/extensions/libxt_CONNSECMARK.man
iptables-1.4.6/extensions/libxt_dccp.c
iptables-1.4.6/extensions/libxt_hashlimit.c
iptables-1.4.6/extensions/libxt_connlimit.c
iptables-1.4.6/extensions/libxt_u32.man
iptables-1.4.6/extensions/libxt_cluster.c
iptables-1.4.6/extensions/libipt_realm.man
iptables-1.4.6/extensions/libxt_string.man
iptables-1.4.6/extensions/libxt_iprange.man
iptables-1.4.6/extensions/libxt_CONNMARK.man
iptables-1.4.6/extensions/libip6t_ipv6header.man
iptables-1.4.6/extensions/libip6t_REJECT.man
iptables-1.4.6/extensions/libipt_ecn.man
iptables-1.4.6/extensions/libipt_MIRROR.man
iptables-1.4.6/extensions/libxt_mac.c
iptables-1.4.6/extensions/libxt_mark.c
iptables-1.4.6/extensions/libxt_socket.c
iptables-1.4.6/extensions/libxt_tcp.c
iptables-1.4.6/extensions/libxt_udp.man
iptables-1.4.6/extensions/libip6t_hbh.c
iptables-1.4.6/extensions/libip6t_dst.c
iptables-1.4.6/extensions/libxt_connbytes.man
iptables-1.4.6/extensions/libipt_MASQUERADE.man
iptables-1.4.6/extensions/libxt_policy.c
iptables-1.4.6/extensions/libip6t_mh.man
iptables-1.4.6/extensions/libip6t_LOG.c
iptables-1.4.6/extensions/libipt_ECN.man
iptables-1.4.6/extensions/libxt_state.man
iptables-1.4.6/extensions/libxt_time.man
iptables-1.4.6/extensions/libipt_TTL.man
iptables-1.4.6/extensions/libip6t_ah.c
iptables-1.4.6/extensions/libxt_DSCP.man
iptables-1.4.6/extensions/libxt_owner.c
iptables-1.4.6/extensions/libipt_LOG.c
iptables-1.4.6/extensions/libipt_REDIRECT.man
iptables-1.4.6/extensions/libip6t_rt.man
iptables-1.4.6/extensions/libxt_length.man
iptables-1.4.6/extensions/libxt_osf.c
iptables-1.4.6/extensions/libxt_pkttype.man
iptables-1.4.6/extensions/libipt_icmp.c
iptables-1.4.6/extensions/libipt_icmp.man
iptables-1.4.6/extensions/libipt_SAME.c
iptables-1.4.6/extensions/libipt_realm.c
iptables-1.4.6/extensions/libip6t_ah.man
iptables-1.4.6/extensions/libipt_ECN.c
iptables-1.4.6/extensions/libxt_DSCP.c
iptables-1.4.6/extensions/libip6t_mh.c
iptables-1.4.6/extensions/libxt_SECMARK.man
iptables-1.4.6/extensions/libipt_SNAT.man
iptables-1.4.6/extensions/libipt_MASQUERADE.c
iptables-1.4.6/extensions/libxt_comment.c
iptables-1.4.6/extensions/libxt_connmark.man
iptables-1.4.6/extensions/libxt_sctp.c
iptables-1.4.6/extensions/libxt_recent.man
iptables-1.4.6/extensions/libipt_addrtype.man
iptables-1.4.6/extensions/libxt_TOS.man
iptables-1.4.6/extensions/libxt_tcpmss.man
iptables-1.4.6/extensions/libxt_TOS.c
iptables-1.4.6/extensions/libipt_SET.man
iptables-1.4.6/extensions/libip6t_hl.c
iptables-1.4.6/extensions/libxt_quota.c
iptables-1.4.6/extensions/libipt_DNAT.man
iptables-1.4.6/extensions/libip6t_frag.man
iptables-1.4.6/extensions/libxt_statistic.man
iptables-1.4.6/extensions/libxt_MARK.c
iptables-1.4.6/extensions/libipt_SNAT.c
iptables-1.4.6/extensions/libipt_CLUSTERIP.man
iptables-1.4.6/extensions/libip6t_ipv6header.c
iptables-1.4.6/extensions/libxt_length.c
iptables-1.4.6/extensions/libxt_TRACE.man
iptables-1.4.6/extensions/libxt_comment.man
iptables-1.4.6/extensions/libipt_NETMAP.c
iptables-1.4.6/extensions/libipt_DNAT.c
iptables-1.4.6/extensions/libxt_TCPMSS.c
iptables-1.4.6/extensions/libxt_quota.man
iptables-1.4.6/extensions/libipt_SET.c
iptables-1.4.6/extensions/libxt_tos.man
iptables-1.4.6/extensions/libxt_tos.c
iptables-1.4.6/extensions/libxt_TCPOPTSTRIP.man
iptables-1.4.6/extensions/libxt_TPROXY.c
iptables-1.4.6/extensions/libxt_TRACE.c
iptables-1.4.6/extensions/libipt_LOG.man
iptables-1.4.6/extensions/libxt_RATEEST.c
iptables-1.4.6/extensions/libxt_dscp.man
iptables-1.4.6/extensions/libipt_TTL.c
iptables-1.4.6/extensions/libxt_NFQUEUE.man
iptables-1.4.6/extensions/libxt_NFLOG.man
iptables-1.4.6/extensions/libipt_ah.c
iptables-1.4.6/extensions/libip6t_hl.man
iptables-1.4.6/extensions/libipt_unclean.man
iptables-1.4.6/extensions/libxt_physdev.c
iptables-1.4.6/extensions/libipt_ttl.man
iptables-1.4.6/extensions/libxt_policy.man
iptables-1.4.6/extensions/libxt_hashlimit.man
iptables-1.4.6/extensions/libxt_mark.man
iptables-1.4.6/extensions/libipt_REJECT.man
iptables-1.4.6/extensions/libxt_conntrack.man
iptables-1.4.6/extensions/tos_values.c
iptables-1.4.6/extensions/libipt_ah.man
iptables-1.4.6/extensions/libipt_addrtype.c
iptables-1.4.6/extensions/libipt_set.h
iptables-1.4.6/extensions/libxt_connlimit.man
iptables-1.4.6/extensions/libxt_TCPOPTSTRIP.c
iptables-1.4.6/extensions/libip6t_eui64.c
iptables-1.4.6/extensions/libip6t_LOG.man
iptables-1.4.6/extensions/libxt_cluster.man
iptables-1.4.6/extensions/libxt_socket.man
iptables-1.4.6/extensions/libipt_set.c
iptables-1.4.6/extensions/libxt_tcp.man
iptables-1.4.6/extensions/libxt_NOTRACK.man
iptables-1.4.6/extensions/libxt_esp.man
iptables-1.4.6/extensions/libxt_TPROXY.man
iptables-1.4.6/extensions/libxt_limit.man
iptables-1.4.6/extensions/libxt_state.c
iptables-1.4.6/extensions/libxt_sctp.man
iptables-1.4.6/extensions/libxt_NOTRACK.c
iptables-1.4.6/extensions/libip6t_HL.c
iptables-1.4.6/extensions/libxt_udp.c
iptables-1.4.6/extensions/libip6t_REJECT.c
iptables-1.4.6/extensions/libipt_ecn.c
iptables-1.4.6/config.guess
iptables-1.4.6/ip6tables.c
iptables-1.4.6/iptables-save.8
iptables-1.4.6/iptables.xslt
iptables-1.4.6/xshared.h
iptables-1.4.6/compile
iptables-1.4.6/autogen.sh
iptables-1.4.6/iptables-apply
iptables-1.4.6/xtables.pc.in
iptables-1.4.6/depcomp
iptables-1.4.6/Makefile.am
iptables-1.4.6/COPYING
iptables-1.4.6/xshared.c
iptables-1.4.6/ip6tables-standalone.c
iptables-1.4.6/iptables.c
iptables-1.4.6/configure.ac
iptables-1.4.6/iptables-xml.c
iptables-1.4.6/release.sh
iptables-1.4.6/iptables-save.c
iptables-1.4.6/iptables.8.in
iptables-1.4.6/ip6tables-save.8
iptables-1.4.6/configure
iptables-1.4.6/missing
iptables-1.4.6/config.sub
iptables-1.4.6/.gitignore
iptables-1.4.6/iptables-restore.c
iptables-1.4.6/ip6tables-multi.c
[root@xxx]#
[root@xxx]#
[root@xxx]#
[root@xxx]# cd /usr/src/iptables-1.4.6/
[root@xxx iptables-1.4.6]#
[root@xxx iptables-1.4.6]# pwd
/usr/src/iptables-1.4.6
[root@axxx iptables-1.4.6]#
[root@xxx iptables-1.4.6]#
[root@xxx /]#
[root@xxx /]# /bin/sh -c make
make: *** No targets specified and no makefile found. Stop.
[root@xxx]#
[root@xxx /]#
[root@xxx /]# cd /usr/src/iptables-1.4.6/
[root@xxx iptables-1.4.6]#
[root@xxx iptables-1.4.6]# pwd
/usr/src/iptables-1.4.6
[root@xxx iptables-1.4.6]#
[root@xxx iptables-1.4.6]# /bin/sh -c make
make all-recursive
make[1]: Entering directory `/usr/src/iptables-1.4.6'
Making all in extensions
make[2]: Entering directory `/usr/src/iptables-1.4.6/extensions'
make[2]: Leaving directory `/usr/src/iptables-1.4.6/extensions'
Making all in include
make[2]: Entering directory `/usr/src/iptables-1.4.6/include'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/iptables-1.4.6/include'
make[2]: Entering directory `/usr/src/iptables-1.4.6'
make[2]: Leaving directory `/usr/src/iptables-1.4.6'
make[1]: Leaving directory `/usr/src/iptables-1.4.6'
[root@xxx iptables-1.4.6]#
[root@xxx iptables-1.4.6]# /bin/sh -c make install
make all-recursive
make[1]: Entering directory `/usr/src/iptables-1.4.6'
Making all in extensions
make[2]: Entering directory `/usr/src/iptables-1.4.6/extensions'
make[2]: Leaving directory `/usr/src/iptables-1.4.6/extensions'
Making all in include
make[2]: Entering directory `/usr/src/iptables-1.4.6/include'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/iptables-1.4.6/include'
make[2]: Entering directory `/usr/src/iptables-1.4.6'
make[2]: Leaving directory `/usr/src/iptables-1.4.6'
make[1]: Leaving directory `/usr/src/iptables-1.4.6'
[root@xxx iptables-1.4.6]#
[root@xxx iptables-1.4.6]# iptables -V
-bash: /sbin/iptables: No such file or directory
[root@xxx iptables-1.4.6]#
[root@xxx iptables-1.4.6]# iptables
-bash: /sbin/iptables: No such file or directory
[root@xxx iptables-1.4.6]#
[root@xxx iptables-1.4.6]# cp ./iptables
iptables.8 iptables-multi.c iptables_multi-iptables-standalone.o iptables-save.c
iptables.8.in iptables-multi.h iptables_multi-iptables-xml.o iptables-standalone.c
iptables-apply iptables_multi-iptables-multi.o iptables_multi-xshared.o iptables-xml.8
iptables-apply.8 iptables_multi-iptables.o iptables-restore.8 iptables-xml.c
iptables.c iptables_multi-iptables-restore.o iptables-restore.c iptables.xslt
iptables-multi iptables_multi-iptables-save.o iptables-save.8
[root@xxx iptables-1.4.6]# cp ./iptables /sbin
cp: cannot stat `./iptables': No such file or directory
[root@xxx iptables-1.4.6]#
[root@xxx iptables-1.4.6]# ls
aclocal.m4 INCOMPATIBILITIES ip6tables-restore.c iptables_multi-iptables-standalone.o libxtables.la
autogen.sh INSTALL ip6tables-save.8 iptables_multi-iptables-xml.o libxtables_la-xtables.lo
COMMIT_NOTES install-sh ip6tables-save.c iptables_multi-xshared.o ltmain.sh
compile ip6tables.8 ip6tables-standalone.c iptables-restore.8 m4
config.guess ip6tables.8.in iptables.8 iptables-restore.c Makefile
config.h ip6tables.c iptables.8.in iptables-save.8 Makefile.am
config.h.in ip6tables-multi iptables-apply iptables-save.c Makefile.in
config.log ip6tables-multi.c iptables-apply.8 iptables-standalone.c missing
config.status ip6tables-multi.h iptables.c iptables-xml.8 release.sh
config.sub ip6tables_multi-ip6tables-multi.o iptables-multi iptables-xml.c stamp-h1
configure ip6tables_multi-ip6tables.o iptables-multi.c iptables.xslt xshared.c
configure.ac ip6tables_multi-ip6tables-restore.o iptables-multi.h libipq xshared.h
COPYING ip6tables_multi-ip6tables-save.o iptables_multi-iptables-multi.o libiptc xtables.c
depcomp ip6tables_multi-ip6tables-standalone.o iptables_multi-iptables.o libiptc.pc xtables.pc
extensions ip6tables_multi-xshared.o iptables_multi-iptables-restore.o libiptc.pc.in xtables.pc.in
include ip6tables-restore.8 iptables_multi-iptables-save.o libtool
[root@xxx iptables-1.4.6]#
[root@xxx iptables-1.4.6]# pwd
/usr/src/iptables-1.4.6
[root@xxx iptables-1.4.6]#
[root@xxx iptables-1.4.6]#

It dosen't give any error, or something like that, maybe it needs a reboot, but I don't want to reboot the server, 'cause it's in production mode and I can't permit that, the server needs to up up and running without one second off.
 
Old 12-10-2009, 01:32 AM   #15
ytd
Member
 
Registered: Jan 2009
Posts: 205

Original Poster
Rep: Reputation: 31
Btw, I did yum remove iptables before tring to install the new version.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables doesn't work DBabo Linux - Security 23 06-08-2009 09:26 PM
Don't work iptables -j ScanD... NightSoul Linux - Software 2 04-28-2006 01:10 PM
iptables doesn't work with me Agent007 Linux - Networking 4 01-23-2004 07:14 AM
IPTABLES doesn't work!!! help... saruman666 Linux - Networking 11 08-16-2003 04:15 PM
IPTables doesn't seem to work X11 Linux - Software 7 07-08-2002 12:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration