Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 09-05-2014, 01:00 AM   #16
Registered: Jul 2008
Location: Tehran
Posts: 441

Original Poster
Rep: Reputation: 22

Originally Posted by zhjim View Post
How do you ping your machine? Do you ping it on IP address or on name?

Also your rules only accept incoming traffic on lo interface but not outgoing on lo. Thus after "iptables -A INPUT -i lo -j ACCEPT" add: "iptables -A OUTPUT -i lo -j ACCEPT"
Nother thing are your last two lines "iptables -A INPUT -j DROP; iptables -A OUTPUT -j DROP". You allready set this at the start. Also it wont hurt its just not needed.

Both not worked.

iptables -A OUTPUT -i lo -j ACCEPT :

iptables v1.4.14: Can't use -i with OUTPUT

Try `iptables -h' or 'iptables --help' for more information.
Old 09-05-2014, 03:07 AM   #17
Registered: Nov 2010
Location: Germany
Distribution: Gentoo
Posts: 286

Rep: Reputation: 89
It is "o" with "OUTPUT", not "i". See the manpage of iptables: "i" is for "incoming interface", "o" is for "outgoing interface".

iptables -A OUTPUT -o lo -j ACCEPT


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
connect to[]: Connection refused (port 10024) adamos22 Linux - Newbie 2 07-31-2013 01:40 PM
psad: scan detected: -> tcp macaal Linux - Security 4 06-17-2011 02:56 PM
IPtables redirect to nickname.random Linux - Networking 12 07-11-2010 06:32 PM
Sendmail : relay=[] [], dsn=4.0.0, stat=Deferred: Connection refuse macadam Linux - Software 0 09-23-2007 03:44 PM
DSN: Data format error & relay=[] [] calmbomb Linux - Software 0 11-07-2004 04:24 PM > Forums > Linux Forums > Linux - Security

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

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