- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Switching from ipchains to iptables
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2004 09:59 AM
04-02-2004 09:59 AM
Here's what I get:
[root@linda sysconfig]# service iptables start
Flushing all current rules and user defined chains: [ OK ]
Clearing all current rules and user defined chains: [ OK ]
Applying iptables firewall rules: [ OK ]
Bad argument `iptables'
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
[FAILED]
[root@linda sysconfig]# cat iptables
iptables -F
iptables -A INPUT -i lo -p all -j ACCEPT
iptables -A OUTPUT -o lo -p all -j ACCEPT
iptables -A INPUT -p tcp -i eth0 --dport 80 -j ACCEPT
iptables -a INPUT -p udp -i eth0 --dport 80 -j ACCEPT
iptables -p INPUT DROP
[root@linda sysconfig]#
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2004 10:28 AM
04-02-2004 10:28 AM
Solutionr u editing file manually?
#Cat IPtables -should look like this......
-------------------------------------
[root@abc sysconfig]# cat iptables
# Firewall configuration written by lokkit
# Manual customization of this file is not recommended.
# Note: ifup-post will punch the current nameservers through the
# firewall; such entries will *not* be listed here.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Lokkit-0-50-INPUT - [0:0]
dport 25 --syn -j ACCEPT
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 80 --syn -j ACCEPT
-A RH-Lokkit-0-50-INPUT -i lo -j ACCEPT
-A RH-Lokkit-0-50-INPUT -i eth1 -j ACCEPT
-A RH-Lokkit-0-50-INPUT -i eth0 -j ACCEPT
---------------------------------------
<>iptables<> -A INPUT -i lo -p all -j ACCEPT
<>---------<>is ur problem
Regards
Peeyush
http://geocities.com/peeyush_maurya/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2004 10:31 AM
04-02-2004 10:31 AM
Re: Switching from ipchains to iptables
iptables -a INPUT -p udp -i eth0 --dport 80 -j ACCEPT
##### u r using small case 'a'
iptables -p INPUT DROP
##### u r using small case 'p'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2004 10:48 AM
04-02-2004 10:48 AM
Re: Switching from ipchains to iptables
I copied and pasted your example and it ran without failing. I was doing it manually; didn't know how to make lokkit do it.
Vern
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2004 10:54 AM
04-02-2004 10:54 AM
Re: Switching from ipchains to iptables
iptables r king of all firewall but if u want u can look at fwbuilder GUI Firewall
www.fwbuilder.org/
though there r many aviable
http://www.simonzone.com/software/guarddog/
http://firestarter.sourceforge.net/
regards
peeyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2004 02:15 AM
04-03-2004 02:15 AM
Re: Switching from ipchains to iptables
Iptables seems to be blocking the hacks that took down my server four times last week. This morning Apache log shows three attempts to send buffer-overflow URI's overnight. All were rejected with the error message "URI too long for this server".
Thanks for the help !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2004 10:42 AM
04-03-2004 10:42 AM
Re: Switching from ipchains to iptables
But it's good to hear that your firewall is doing ok!
Incidentally, Apache only needs port 80 TCP, not UDP. So that's one less rule you need.