Old 09-05-2011, 02:12 PM   #1 (permalink)
Newbie
 
Join Date: Sep 2011
Posts: 6
daeblip is on a distinguished road
Default Related & Established

I am used to creating all my firewalls rules from scratch at the command line and I cant seem to figure out something via the interface in untangle:

How do I get the equivalence of a block everything incoming except related/established rules in a typical iptables/netfilter rule set?

This is the part that gets me :
Based off some scans of my firewall it doesnt appear this is the default setup. Setting a default rule of "block" results in all sites, including currently active ones, being blocked. ie: Suddenly I cant browse the untangle.com website.

For example:
iptables -P INPUT DROP
iptables -A INPUT -j HEAD
iptables -A HEAD -m state --state ESTABLISHED,RELATED -j ACCEPT

or similar such as on the FORWARD.
daeblip is offline  
Old 09-05-2011, 02:34 PM   #2 (permalink)
Untangle Junkie
 
dmorris's Avatar
 
Join Date: Nov 2006
Location: San Mateo, CA
URLs submitted: 10
Posts: 10,611
dmorris is on a distinguished road
Default

That is the default setting if you chose "Router."

Are you talking about the firewall app? Those rules are run on new sessions, any subsequent packet in an already approved session is allowed.

Untangle is not iptables. If you want to muck with iptables I'd install linux.
__________________
Attention: Support and help on the Untangle Forums is provided by
volunteers and community members like yourself.
If you need Untangle support please call or email support@untangle.com
dmorris is offline  
Old 09-05-2011, 02:48 PM   #3 (permalink)
Master Untangler
 
Join Date: Aug 2011
Location: Buckhannon, WV
Posts: 121
drsminkus is on a distinguished road
Default

Remember that if you have a default rule of block in the firewall module you also have to create a rule to allow traffic out from your LAN to the WAN. Browsing a website does not create a long-lived TCP session. Most HTTP TCP sessions last only long enough to download an HTML page or an image. So saying that changing the default rule stops websites that are being actively viewed is probably not the best test. Try putting in an allow for LAN to WAN and try changing the default rule to block.
drsminkus is offline  
Old 09-05-2011, 02:54 PM   #4 (permalink)
Untangle Junkie
 
dmorris's Avatar
 
Join Date: Nov 2006
Location: San Mateo, CA
URLs submitted: 10
Posts: 10,611
dmorris is on a distinguished road
Default

Also, hitting save in the firewall makes it re-evaluate the new rules against current sessions and reset them if they should be blocked.

We had to do this because people kept saying "ZOMG, firewall rules don't work!!!!11"
__________________
Attention: Support and help on the Untangle Forums is provided by
volunteers and community members like yourself.
If you need Untangle support please call or email support@untangle.com
dmorris is offline  
Old 09-05-2011, 03:45 PM   #5 (permalink)
Untangle Ninja
 
sky-knight's Avatar
 
Join Date: Apr 2008
Location: Phoenix, AZ
URLs submitted: 8
Posts: 15,454
sky-knight is on a distinguished road
Default

Which now leads to ZOMG, Untangle just crashed my browser!?!?!?!!

Can't win on that one!
__________________
Rob Sandling, BS:SWE, MCP
Intouch Technology
Phone: 480-272-9889
rob@intouchtechllc.com

UntangleAppliances.com
Phone: 866-794-8879
sky-knight is offline  
Old 09-06-2011, 06:28 AM   #6 (permalink)
Newbie
 
Join Date: Sep 2011
Posts: 6
daeblip is on a distinguished road
Default

Thanks for the info. I didnt realize that Untangle did not use iptables. Just made an arse of me by assuming. =) Was attempting to apply my understanding of the iptables/netfilter stacks I normally work with (conntrack with rule insertion/removal vs flush).
daeblip is offline  
Closed Thread

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 06:17 AM.


© 2010 Untangle, Inc. All Rights Reserved.   SEO by vBSEO 3.6.0 PL2