#1  
Old 23rd April 2011, 20:46
newbie14 newbie14 is offline
Member
 
Join Date: Jul 2010
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Default Iptables problem

Dear All,
I have a machine first I run this command service iptables restart
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: filter [ OK ]
Unloading iptables modules: [ OK ]
Applying iptables firewall rules: [ OK ]
Loading additional iptables modules: ip_conntrack_netbios_n[ OK ]
Next when I run this command vi /etc/sysconfig/iptables to insert new ports it gives me a blank page is this normal?
Reply With Quote
Sponsored Links
  #2  
Old 24th April 2011, 11:04
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,730 Times in 2,568 Posts
Default

What's your distribution?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 24th April 2011, 12:17
newbie14 newbie14 is offline
Member
 
Join Date: Jul 2010
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dear Falko,
I am using centos 5.5 but on other machine this is not a problem either.
Reply With Quote
  #4  
Old 6th July 2011, 20:44
Jawshh Jawshh is offline
Junior Member
 
Join Date: Jul 2010
Posts: 25
Thanks: 2
Thanked 1 Time in 1 Post
Default

newbie,

You can't create rules by putting them in that iptables file. You create rules by typing:

Code:
iptables and rules here
Looks like you don't know much about that firewall software. Why don't you use APF instead? It's based on iptables and much much easier to configure

If you really really want to use iptables, read this pretty good and informative page:
http://en.gentoo-wiki.com/wiki/Iptables
Reply With Quote
  #5  
Old 7th July 2011, 01:12
newbie14 newbie14 is offline
Member
 
Join Date: Jul 2010
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Dear Jawsh,
What are APF? What the other firewall software we should know?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO: Implement iptables blocking by Country drewb0y Tips/Tricks/Mods 16 5th October 2013 00:07
Faster Postfix problems pedrovalmor Installation/Configuration 6 10th June 2010 22:11
MyDNS problem and Iptables problem Gimly General 4 13th August 2009 15:59
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 12:20
Match IP with MAC using iptables for squid block cooljai Server Operation 0 30th August 2007 18:30


All times are GMT +2. The time now is 09:26.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.