Old 11-07-2011, 10:28 AM   #1 (permalink)
Untangle Ninja
 
dbunyard's Avatar
 
Join Date: Nov 2008
Location: Westerville, Ohio, USA
Posts: 1,020
dbunyard is on a distinguished road
Default Shutdown Order Of Operations

Had a small issue this morning when we rebooted our Untangle server. It looks like the Untangle box shuts done some modules (at least the SPAM scanning one) before it completely halts network traffic. While our volume of email is quite low (72k emails last month) this seems like this could be quite an issue at a larger cooperation that receives hundreds of thousands of emails a day if they were forced to reboot in the middle of the day. My boss was the one that noticed it as he got 3 emails one right after another that slipped through the filters un-scanned.

So I suppose my feedback is this, is it possible to have the Untangle box halt all network traffic before it shuts down the various rack modules?

Here is a screenshot showing the gap in emails and I have attached 3 messages that came through to my boss that were not scanned by Untangle:
Attached Files
File Type: zip spam.zip (3.7 KB, 0 views)
__________________
Dan

You may one day find something interesting here. Today is not that day. Tomorrow isn't looking too good either.
dbunyard is offline  
Old 11-07-2011, 11:49 AM   #2 (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

This is a known issue. There is a time delay between when the kernel starts, and the UVM starts. During this window the kernel is bridging/routing packets, but the rack defenses aren't in place. There is a similar window on shutdown as well, it's just much shorter.
__________________
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 11-07-2011, 11:51 AM   #3 (permalink)
Untangle Ninja
 
dbunyard's Avatar
 
Join Date: Nov 2008
Location: Westerville, Ohio, USA
Posts: 1,020
dbunyard is on a distinguished road
Default

Ahh I see, I didn't realize this was a known issue. Sorry to have been a bother.
__________________
Dan

You may one day find something interesting here. Today is not that day. Tomorrow isn't looking too good either.
dbunyard is offline  
Old 11-07-2011, 11:57 AM   #4 (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

Not a bother, it's just the way the software works. This question crops up from time to time. It's just one of those things that gets forgotten along the way sometimes. I know Untangle has addressed it in the past, and done things to attempt to shorten that delay. Because, everyone knows there is a security issue there at least temporarily.
__________________
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 11-07-2011, 12:21 PM   #5 (permalink)
Untangle Ninja
 
dbunyard's Avatar
 
Join Date: Nov 2008
Location: Westerville, Ohio, USA
Posts: 1,020
dbunyard is on a distinguished road
Default

I will just have to remember to shut down the SMTP service on our Exchange server the next time I reboot Untangle. I'm just glad it was just my boss and not our CEO that got flooded with SPAM for a short time.
__________________
Dan

You may one day find something interesting here. Today is not that day. Tomorrow isn't looking too good either.
dbunyard is offline  
Old 11-07-2011, 12:32 PM   #6 (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

That... is not a bad idea. I'm going to have to do the same for a few sites. Stopping the STMP service is trivial and painless. I've been lucky enough that the mail servers I have online aren't busy enough to push through like that.

An alternative is a packet filter rule on Untangle to halt inbound port 25. Leave it off normally, kick it on before you reboot. That will stop traffic at a kernel level, and is active when the interfaces come online. So the SMTP won't move until you disable the rule after a reboot.
__________________
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 11-07-2011, 12:35 PM   #7 (permalink)
Untangle Ninja
 
dbunyard's Avatar
 
Join Date: Nov 2008
Location: Westerville, Ohio, USA
Posts: 1,020
dbunyard is on a distinguished road
Default

Quote:
Originally Posted by sky-knight View Post
That... is not a bad idea. I'm going to have to do the same for a few sites. Stopping the STMP service is trivial and painless. I've been lucky enough that the mail servers I have online aren't busy enough to push through like that.
Yeah since my AD account is domain admin I can even remote manage the Exchange box and shut down that service for a few minutes while the Untangle box reboots. Our edge server will hold onto the mail until I bring the SMTP service back up after the UT reboot then everything will be all happy and no un-scanned emails!
__________________
Dan

You may one day find something interesting here. Today is not that day. Tomorrow isn't looking too good either.
dbunyard is offline  
Old 11-09-2011, 04:20 AM   #8 (permalink)
Untangle Ninja
 
dwasserman's Avatar
 
Join Date: Jun 2008
Location: Argentina
URLs submitted: 57
Posts: 3,634
dwasserman is on a distinguished road
Default

Unplug the network patch cord of untangle meanwhile reboot
__________________
The world is divided into 10 kinds of people, who know binary and those not
dwasserman is offline  
Old 11-09-2011, 04:48 AM   #9 (permalink)
Untangle Ninja
 
dbunyard's Avatar
 
Join Date: Nov 2008
Location: Westerville, Ohio, USA
Posts: 1,020
dbunyard is on a distinguished road
Default

Quote:
Originally Posted by dwasserman View Post
Unplug the network patch cord of untangle meanwhile reboot
lol that would be easy if I hadn't been 25 miles from its location.
__________________
Dan

You may one day find something interesting here. Today is not that day. Tomorrow isn't looking too good either.
dbunyard is offline  
Old 11-09-2011, 06:48 AM   #10 (permalink)
Master Untangler
 
choeschen's Avatar
 
Join Date: Sep 2007
Posts: 126
choeschen is on a distinguished road
Default

Would't the simple solution be to have UT changed the default action on iptables to block and clear out all rules on startup and shutdown? When UT is done booting it can reset the rules and default action back to how it should be. I have built my own home grown firewalls before using iptables so I know this can be done via a simple script. It does not take that much time to add a bunch of rules to iptables via a script either. I was able to run through hundreds of rules being added to iptables in a matter of seconds and that was on much older hardware then the minimum requirements UT needs.

Just my
choeschen 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 05:34 AM.


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