LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-03-2007, 07:18 AM   #1
bic
Member
 
Registered: Jan 2005
Distribution: MythDora 3.2, RHEL 6.3
Posts: 101

Rep: Reputation: 16
webmin and iptables


When applying firewall rules for first time (based on allow only ssh and identd plus some that I added) in webmin:


Failed to apply configuration :

Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: mangle filter [ OK ]
Applying iptables firewall rules: iptables-restore: line 47 failed
[FAILED]


Code:
	Action 	Condition 	Move 	Add
	Accept 	If input interface is venet0 		
	Accept 	If protocol is TCP and TCP flags ACK (of ACK) are set 		
	Accept 	If state of connection is ESTABLISHED 		
	Accept 	If state of connection is RELATED 		
	Accept 	If protocol is UDP and destination port is 1024:65535 and source port is 53 		
	Accept 	If protocol is ICMP and ICMP type is echo-reply 		
	Accept 	If protocol is ICMP and ICMP type is destination-unreachable 		
	Accept 	If protocol is ICMP and ICMP type is source-quench 		
	Accept 	If protocol is ICMP and ICMP type is time-exceeded 		
	Accept 	If protocol is ICMP and ICMP type is parameter-problem 		
	Accept 	If protocol is TCP and destination port is ssh 		
	Accept 	If protocol is TCP and destination port is auth 		
	Accept 	If protocol is TCP and destination port is 80 		
	Accept 	If protocol is TCP and destination port is 10000 		
	Accept 	If protocol is TCP and destination port is 3782 		
	Accept 	If protocol is UDP and destination port is 3782
port 80 onwards are what I added.

where do I find line 47 to debug it?
 
Old 04-03-2007, 07:40 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
on redhat, check /etc/sysconfig/iptables. as i'm sure you can appreciate, webmin's prettified output isn't really useful...
 
Old 04-03-2007, 07:59 AM   #3
bic
Member
 
Registered: Jan 2005
Distribution: MythDora 3.2, RHEL 6.3
Posts: 101

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by acid_kewpie
on redhat, check /etc/sysconfig/iptables. as i'm sure you can appreciate, webmin's prettified output isn't really useful...

There must be something wrong between webmin 1.330 and FC 4, not even the basic rules work that Webmin can setup for it.
 
  


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
webmin: missing /etc/init.d/webmin quarry_06 Debian 9 02-03-2007 09:55 AM
newbie trying to configure iptables with webmin bschiett Linux - Security 3 01-05-2006 04:58 PM
iptables v1.2.9: Unknown arg `/sbin/iptables' Try `iptables -h' or 'iptables --help' Niceman2005 Linux - Security 4 12-29-2005 08:20 PM
webmin troubles - Failed to write to /etc/webmin/module.infos.cache : No space left o coal-fire-ice Linux - Software 1 07-28-2005 10:08 AM
IPtables Log Analyzer from http://www.gege.org/iptables/ brainlego Linux - Software 0 08-11-2003 06:08 AM

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

All times are GMT -5. The time now is 10:47 PM.

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