LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 03:24 PM   #1
dimm0k
Member
 
Registered: May 2008
Location: Brooklyn ZOO
Distribution: Slackware64 14.2
Posts: 564

Rep: Reputation: 56
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, 05:23 PM   #2
DutchGeek
Member
 
Registered: Sep 2006
Distribution: SuSE, Slackware
Posts: 55

Rep: Reputation: 10
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



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 07:44 PM
midnight commander peterb Ubuntu 1 10-14-2010 09:22 AM
Midnight Commander matombo Fedora 3 11-30-2005 12:41 PM
midnight commander prevoo DamnSmallLinux 6 09-19-2004 04:26 PM
midnight commander enigma1 Linux - Software 6 12-10-2003 02:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:21 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
Open Source Consulting | Domain Registration