Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27

Thread: Tidy SSH access

  1. #21
    Master Untangler jontz's Avatar
    Join Date
    Sep 2008
    Posts
    107

    Default

    sky-night, can you please answer my question above when you get a chance (post #17)? Thanks!

  2. #22
    Untangle Ninja sky-knight's Avatar
    Join Date
    Apr 2008
    Location
    Phoenix, AZ
    Posts
    16,976

    Default

    Sure!

    Both the firewall and the packet filter work on the principle of first rule matched wins. So your rules need to be ordered from most specific to least specific in order to work as expected.

    So yes the firewall and packet filter work exactly the same way, put your general blocks at the bottom of the list.
    Rob Sandling, BS:SWE, MCP
    Intouch Technology
    Phone: 480-272-9889
    NexgenAppliances.com
    Phone: 866-794-8879

  3. #23
    Master Untangler jontz's Avatar
    Join Date
    Sep 2008
    Posts
    107

    Default

    Thanks for the confirmation. I have two rules set up for SSH (I only access SSH from one machine...mine). The first one is

    Pass-Source Interface Internal-Desination Port 22-Protocol TCP-Source IP x.x.x.x

    2nd rule is

    Block-Destination Port22-Protocol TCP

    I should be good, yes?

  4. #24
    Untangle Ninja sky-knight's Avatar
    Join Date
    Apr 2008
    Location
    Phoenix, AZ
    Posts
    16,976

    Default

    I would be a bit more specific...

    Pass
    Source Interface Internal
    Protocol TCP
    Destination Port 22
    Destination IP (internal UT IP)
    Source IP x.x.x.x

    And the block is
    Block
    Protocol TCP
    Destination Port 22
    Destination Local

    If you don't put that destination local on the end your second rule will prevent all SSH from traversing the Untangle! And your original allow rule allows all SSH from that internal IP, regardless of destination!
    Rob Sandling, BS:SWE, MCP
    Intouch Technology
    Phone: 480-272-9889
    NexgenAppliances.com
    Phone: 866-794-8879

  5. #25
    Master Untangler jontz's Avatar
    Join Date
    Sep 2008
    Posts
    107

    Default

    Beautiful. Thanks a million!

  6. #26
    Newbie
    Join Date
    Oct 2008
    Posts
    4

    Default

    So if I have a pfsense box in front of the Untangle box, do I need to worry about doing much more than doing the
    Code:
    update-rc.d ssh defaults
    /etc/init.d/ssh restart
    from the console? I have a VPN set up on the pfsense side so I'd still like to be able to access the Untangle box when I'm working remotely.

  7. #27
    Untangler mikepb's Avatar
    Join Date
    Oct 2009
    Posts
    51

    Default

    Never heard of Defense -in-Depth, I see.
    They should BOTH be filtering! The old suspenders AND belt action!

Page 3 of 3 FirstFirst 123

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO 3.6.0 PL2