LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-26-2011, 08:47 PM   #1
paco_chair
LQ Newbie
 
Registered: Jul 2011
Posts: 1

Rep: Reputation: Disabled
iptables sendmsg: Operation not permitted


Hi all,

I have deployed iptables with mangle. Don't know why I can't ping even localhost after I mangle set-mark. Afterward, I have reset all rules (filter, nat, mangle) to ACCEPT. However, I still can't access the Internet, even the localhost. All I have to do is to stop iptables in order to access the Internet.

I am pretty sure the route setting is OK.

Does anyone please tell me what cause the problem? If it is some modules in mangle restricted all traffics (see the bottom bold and italic output). How could I unload the module if it is the cause?

[root@cen-vpn openvpn0]#ping localhost
PING cen-vpn (127.0.0.1) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted

[root@cen-vpn openvpn0]# service iptables stop
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: raw filter nat mangle [ OK ]
Unloading iptables modules: [ OK ]
[root@cen-vpn openvpn0]# service iptables start
Applying iptables firewall rules: [ OK ]
Loading additional iptables modules: ip_conntrack_netbios_n[ OK ]

Another Normal Computer with iptables:
[root@cen-cl ~]# service iptables stop
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: mangle nat filter [ OK ]
Unloading iptables modules: [ OK ]
[root@cen-cl ~]# service iptables start

Many Thanks,

Last edited by paco_chair; 07-26-2011 at 08:48 PM.
 
Old 07-30-2011, 04:08 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
While your rules are active, can you run the following (the first is if you're using NAT)? It will list out the rules in your NAT and filter tables:
Code:
iptables -t nat -L -n -v --line-numbers
iptables -t filter -L -n -v --line-numbers
 
  


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
ping: sendmsg: operation not permitted br_sriram Linux - Networking 24 04-03-2011 11:12 AM
sendmsg: Operation not permitted on wireless router joe-000 Linux - Wireless Networking 2 07-19-2008 12:53 PM
ping:sendmsg: operation not permitted jeejasmin Linux - Networking 7 04-03-2008 10:15 AM
ping: sendmsg: Operation not permitted kholloi Linux - Networking 0 05-02-2007 05:00 AM
iptables behaviour: sendmsg: Operation mot permitted phsythax Linux - Security 5 04-24-2007 03:18 PM

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

All times are GMT -5. The time now is 12:01 AM.

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