LinuxQuestions.org
Help answer threads with 0 replies.
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 09-05-2014, 01:00 AM   #16
jokar.mohsen
Member
 
Registered: Jul 2008
Location: Tehran
Posts: 441

Original Poster
Rep: Reputation: 22

Quote:
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
cepheus11
Member
 
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".

Code:
iptables -A OUTPUT -o lo -j ACCEPT
 
  


Reply


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

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

All times are GMT -5. The time now is 08: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration