LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-01-2012, 04:24 PM   #1
dimm0k
Member
 
Registered: May 2008
Location: Brooklyn ZOO
Distribution: Slackware64 14.0
Posts: 389

Rep: Reputation: 23
iptables OUTPUT and Midnight Commander


Maybe it never bothered me before, but I realized that Midnight Commander has been really slow to start so I did a little digging and it looks like mc is making some net traffic during startup that's getting blocked by my iptables rules for the OUTPUT chain. Below are the four lines in my OUTPUT chain, which by default is set to DROP if it does not match the rules.

Code:
$IPTABLES -A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A OUTPUT -m state -p ICMP --state INVALID -j DROP
$IPTABLES -A OUTPUT -p ALL -j KEEP_STATE
$IPTABLES -A OUTPUT -s 0.0.0.0/0 -d 0.0.0.0/0 -j ACCEPT
From the looks of it that last line is causing the issue... if I remove that line mc starts up nice and fast, but nothing can get out anymore! Anyone know why this might be? That last line should be allowing everything out, should it not?!
 
Old 12-01-2012, 06:23 PM   #2
DutchGeek
Member
 
Registered: Sep 2006
Distribution: SuSE, Slackware
Posts: 51

Rep: Reputation: 4
Did you check why mc is generating this traffic? and what type of traffic it is? If it is traffic you didn't authorize, it could be a security issue.

Yep looks like the last rule allows all traffic in-out, so only if you remove it, mc works smoothly. I'd say add a rule to allow specific traffic that you know, and deny the rest.

Cheers.
 
  


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
[SOLVED] Midnight Commander Woodsman Slackware 10 06-30-2011 08:44 PM
midnight commander peterb Ubuntu 1 10-14-2010 10:22 AM
Midnight Commander matombo Fedora 3 11-30-2005 01:41 PM
midnight commander prevoo DamnSmallLinux 6 09-19-2004 05:26 PM
midnight commander enigma1 Linux - Software 6 12-10-2003 03:47 PM


All times are GMT -5. The time now is 11:57 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration