LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-06-2010, 05:53 PM   #1
judoka
Member
 
Registered: Jul 2009
Posts: 194

Rep: Reputation: 15
Post ufw


when I enable my ufw it completely shuts me out and I have no internet connection.
when i do:
Code:
sudo ufw status numbered
I get:
Quote:
Status: active

To Action From
-- ------ ----
[ 1] 80 ALLOW IN Anywhere
[ 2] 80 ALLOW OUT Anywhere (out)
but i need to disable my ufw in order to reconnect back to the internet.
Why is that? Doesn't the above rules indicate that I should have inbound and outbound traffic even if my firewall is up?
 
Old 07-06-2010, 06:25 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,120
Blog Entries: 54

Rep: Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788
Even if you're using a firewall front-end troubleshooting rules is more efficient and easier if you list those rules. As root user run: (sudo) 'sort -r /proc/net/ip_tables_names | xargs -iN iptables -t 'N' --line-numbers -nvxL > /tmp/iptables_rules.tmp;'. If you understand iptables you can read them ('less /tmp/iptables_rules.tmp') else you could *attach* the file to this thread. Elif you're cool with troubleshooting rules yourself then precede all "-j DROP" rules with "-j LOG --prefix='dropped_reason '" rules (or watch 'iptables -t 'N' -nvxL' counters) to see what gets dropped where.
 
Old 07-06-2010, 06:40 PM   #3
judoka
Member
 
Registered: Jul 2009
Posts: 194

Original Poster
Rep: Reputation: 15
when i do:
Code:
$ sudo sort -r /proc/net/ip_tables_names | xargs -iN iptables -t 'N' --line-numbers -nvxL > /tmp/iptables_rules.tmp;
i get:
Quote:
iptables v1.4.4: can't initialize iptables table `filter': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
 
Old 07-07-2010, 12:37 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,120
Blog Entries: 54

Rep: Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788
'sudo (sudo sort -r /proc/net/ip_tables_names | xargs -iN iptables -t 'N' --line-numbers -nvxL > /tmp/iptables_rules.tmp)'?
 
Old 07-08-2010, 10:40 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,120
Blog Entries: 54

Rep: Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788Reputation: 2788
This thread was marked "solved" but without offering any explanation, feedback or solution. LQ members and visitors depend on finding an answer in this thread. So please add your solution or mark the thread unsolved.
 
Old 07-08-2010, 03:03 PM   #6
judoka
Member
 
Registered: Jul 2009
Posts: 194

Original Poster
Rep: Reputation: 15
Smile

I stopped using ufw, and set up my firewall with firewall builder; however, wasn't able to install it using the fwbuilder built-in installer. I found this link and installed it manuallyhttp://www.howtoforge.com/using-buil...all-builder-p2
I still would appreciate someone helping me out with how to install the policy that I created with fwbuilder with its built-in installer. I spent a lot of time reading the docs but couldn't find it there. The error I get is
Quote:
scp: /etc/fw/tmp/: Is a directory

SSH session terminated, exit status: 1
this error is presented on the installation stage after the compile went fine, so if anyone has any idea how to go about fixing this leave me a message.
 
  


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
confused about apparmor, ufw and firestarter marozsas Ubuntu 2 11-15-2009 02:41 PM
ufw firewall rhlnewbie Linux - Software 2 10-18-2009 03:23 PM
LXer: Ubuntu 9.10 UFW Firewall LXer Syndicated Linux News 0 10-15-2009 01:02 AM
ufw in Slackware mattydee Slackware 2 05-19-2009 02:35 PM
Can't access network printer through UFW cornleader Ubuntu 3 09-25-2008 09:46 PM


All times are GMT -5. The time now is 12:27 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