Old 10-11-2009, 11:12 AM   #11 (permalink)
Untangle Ninja
 
sky-knight's Avatar
 
Join Date: Apr 2008
Location: Phoenix, AZ
URLs submitted: 8
Posts: 14,698
sky-knight is on a distinguished road
Default

And again, SMTP, POP3, HTTP, and HTTPS, are TCP protocols, UDP isn't used and is more holes than you need.
__________________
Rob Sandling, BS:SWE, MCP
Intouch Technology
Phone: 480-272-9889
rob@intouchtechllc.com

UntangleAppliances.com
Phone: 866-794-8879
sky-knight is online now  
Old 10-11-2009, 11:13 AM   #12 (permalink)
Master Untangler
 
Join Date: May 2009
Location: Mexico City
Posts: 121
mencargo is on a distinguished road
Default

I'm a little rusty with protocols, so I based my rules at:
http://en.wikipedia.org/wiki/List_of...P_port_numbers

Now I have (Thanks to sky-knight and mrunkel):

Pass:

0021 - FTP (TCP & UDP)
0022 - SSH (TCP & UDP)
0023 - Telnet (TCP)
0053 - DNS (UDP)
0080 - HTTP (TCP)
0025 - SMTP (TCP)
0110 - POP3 (TCP)
0143 - IMAP (TCP & UDP)
0443 - HTTPS (TCP)
1863 - MSNP (TCP)

Block:

ANY - ANY (Enabled when I need Logs)

And I guess IMAP is also TCP only?
So, following on the -only server-server communication needs TCP- idea for the DNS rule, that suggests that Untangle itself is no subject to Firewall rules... right?
So for example, for external administration with HTTPS, I could block port 443 and still have access?

And another doubt, I have logs for the 8080 port, Tomcat default HTTP port, is this needed? or is it some P2P frecuent port?

Note: I need 26 port for a hosted mail server solution that uses it. (whitch I wont include here because it might be confusing to others)
I also need a special rule from external to internal 1433 port, for a stockware server that other networks use.

Last edited by mencargo; 10-11-2009 at 11:43 AM..
mencargo is offline  
Old 10-11-2009, 12:05 PM   #13 (permalink)
Untangle Ninja
 
sky-knight's Avatar
 
Join Date: Apr 2008
Location: Phoenix, AZ
URLs submitted: 8
Posts: 14,698
sky-knight is on a distinguished road
Default

TCP 8080 is commonly used for several web services, and proxy services.

IMAP is TCP only as you've said, as is SSH and FTP.

However, you may as well remove that FTP rule, FTP won't fly with just port 21, and unless you want to open all TCP ports >1024... pasv FTP won't be able to establish a data connection. Untangle has no FTP helper in the Firewall module, so the only secure way to enable FTP is with two rules. One to allow TCP 21, and another to allow TCP 1024-65535, and to "secure it" both rules are limited to the FTP server in question.

Need proof? Go try to download an HP printer driver.

P.S. That wiki article is so wrong on so many levels...

ICMP (Ping) operating on TCP/UDP port 8? WTF? ICMP is ANOTHER PROTOCOL, and technically it's port-less so it runs over port "0". But over the ICMP protocol, not TCP or UDP.
__________________
Rob Sandling, BS:SWE, MCP
Intouch Technology
Phone: 480-272-9889
rob@intouchtechllc.com

UntangleAppliances.com
Phone: 866-794-8879

Last edited by sky-knight; 10-11-2009 at 12:10 PM..
sky-knight is online now  
Old 10-11-2009, 12:11 PM   #14 (permalink)
Untangler
 
Join Date: Oct 2009
Location: UK
Posts: 37
shaggydabbydo is on a distinguished road
Default

Quote:
Originally Posted by sky-knight View Post
And again, SMTP, POP3, HTTP, and HTTPS, are TCP protocols, UDP isn't used and is more holes than you need.
Thanks sky-night
shaggydabbydo is offline  
Old 10-11-2009, 12:30 PM   #15 (permalink)
Master Untangler
 
Join Date: May 2009
Location: Mexico City
Posts: 121
mencargo is on a distinguished road
Default

Quote:
Originally Posted by sky-knight View Post
ICMP (Ping) operating on TCP/UDP port 8? WTF? ICMP is ANOTHER PROTOCOL, and technically it's port-less so it runs over port "0". But over the ICMP protocol, not TCP or UDP.
Hehe, I falled for that days ago, I enabled port 8 to be able to ping untangle...
But I saw netstat when pinging and couldn't figure it out, so disabled the rule and still works... I thought it worked with UDP in a mysterious way, ahaha, thanks for the info.
mencargo is offline  
Old 10-11-2009, 12:39 PM   #16 (permalink)
Master Untangler
 
Join Date: May 2009
Location: Mexico City
Posts: 121
mencargo is on a distinguished road
Default

I don't fully understand the DNS process.
If Untangle can communicate directly with the public DNS, in my case OpenDNS.com, do I need the DNS port available?

Last edited by mencargo; 10-11-2009 at 02:25 PM..
mencargo is offline  
Old 10-12-2009, 06:38 PM   #17 (permalink)
Master Untangler
 
Join Date: May 2009
Location: Mexico City
Posts: 121
mencargo is on a distinguished road
Default

@sky-knight, I just discovered that SFTP and SCP don't need random TCP ports, tested it with SFTP client (Bitvise Tunnelier) and it seems to act only with 443 and 22 ports, so that's a good solution for File Transfer at block mode. And port 21 can go away...
=)
mencargo is offline  
Old 10-12-2009, 06:54 PM   #18 (permalink)
Untangle Ninja
 
sky-knight's Avatar
 
Join Date: Apr 2008
Location: Phoenix, AZ
URLs submitted: 8
Posts: 14,698
sky-knight is on a distinguished road
Default

Yes, SCP and SFTP are much more advanced protocols that solve the file transfer issue more directly. However, you can't always get around the loss of FTP.

There are two paths to take to allow FTP. Trust the IP of the FTP server, and create the rules for each FTP server you need to access. Or trust a single client with blanket access to those ports at all times. An FTP proxy would be KILLER in the second application if deployed correctly.

As for DNS....

If my memory is working correctly. Untangle will prevent all outgoing access to UDP or TCP port 53 when the internal DNS service is enabled. However, if you have the DNS service enabled on the UT server... you don't NEED to enable clients to access DNS on the web at all. Untangle has a working caching server that isn't controllable with the firewall module. I'm glad you asked, because the reality is... you don't need that rule to pass port 53 at all, just configure UT to do the DNS work for you, and push the clients the UT internal IP for dns resolution.
__________________
Rob Sandling, BS:SWE, MCP
Intouch Technology
Phone: 480-272-9889
rob@intouchtechllc.com

UntangleAppliances.com
Phone: 866-794-8879
sky-knight is online now  
Old 10-12-2009, 07:06 PM   #19 (permalink)
Master Untangler
 
boyan.sharic's Avatar
 
Join Date: May 2009
Location: Banja Luka, Bosnia and Herzegovina
URLs submitted: 3
Posts: 111
boyan.sharic is on a distinguished road
Default

Quote:
Originally Posted by WebFooL View Post
boyan,
in this thread i have some examples
http://forums.untangle.com/firewall/...html#post58050
Thank You very very much WebFooL

looking forward to seeing new videos
boyan.sharic is offline  
Old 10-12-2009, 07:10 PM   #20 (permalink)
Master Untangler
 
Join Date: May 2009
Location: Mexico City
Posts: 121
mencargo is on a distinguished road
Default

@sky-knight, Glad you cleared that up!
I like to understand those details, that's the inner geek talking.
mencargo 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 04:55 PM.


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