Screen OS

last person joined: 8 months ago 

This is a legacy community with limited Juniper monitoring.
  • 1.  SSG5: Unauthorized login attempts

    Posted 12-02-2012 16:52

    Hi,

     

    I'm seeing some unauthorized login attempts into my SSG5, as per below. Any way to block them?

     

    Do I need to use policy Untrust to Trust and block the IPs? But they're not even accessing my Trust zone, thus I'm a bit confused here. Or should I create a Untrust to Untrust policy, if there's such thing. 😞

     

    Thank you.

     

    2012-11-30 19:42:45 crit Admin root has been re-enabled by NetScreen system after being locked due to excessive failed login attempts
    2012-11-30 11:44:33 crit Admin root has been re-enabled by NetScreen system after being locked due to excessive failed login attempts
    2012-11-30 11:43:44 alert Login attempt by admin root from 61.92.98.218 is refused as this account is locked


  • 2.  RE: SSG5: Unauthorized login attempts

    Posted 12-02-2012 21:27

    Hi,

     

    You have two ways how to solve this:

     

    a) Completely set the untrust interface unmanageable:

    unset interface ethX/X manageable

    unset interface ethX/X manage ssh / telnet / web / ssl / snmp

     

    b) restrict the access to wanted IP's only

    set admin manager-ip ip.ip.ip.ip mask.mask.mask.mask

     

    If you go with the option b, remember to add LAN IP's aswell!



  • 3.  RE: SSG5: Unauthorized login attempts

    Posted 12-02-2012 22:19

    Hi Tero,

     

    I need to have remote access to the SSG5 via Untrust interface, but I won't be able to confirm on WAN IP list. Possible to only block access, instead of adding permit to wanted IPs?

     

     

    Regards,

    Danny



  • 4.  RE: SSG5: Unauthorized login attempts

    Posted 12-03-2012 20:16

    Apart from that, I'm seeing some VPN error message as per below too. Possible to block the IP from establishing a connection with my SSG5?

     

    2012-12-04 12:13:44 info Rejected an IKE packet on ethernet3 from 116.197.180.20:22053 to 192.168.100.1:500 with cookies 736188e0c3f7ec2a and 0000000000000000 because an initial Phase 1 packet arrived from an unrecognized peer gateway.
    2012-12-04 12:13:44 info Rejected an IKE packet on ethernet3 from 116.197.180.20:31759 to 192.168.100.1:500 with cookies 523c118fc7c5f523 and 0000000000000000 because an initial Phase 1 packet arrived from an unrecognized peer gateway.


  • 5.  RE: SSG5: Unauthorized login attempts
    Best Answer

     
    Posted 12-03-2012 21:28

    For management purpose you can change the default ports for telnet/ssh

     

    In that way only you would know on which port the firewall will respond to management:

     

    set admin telnet port <port num>

    set admin ssh port <port>

    set ssl port <Port>  ----- https access

    set admin port <port>   ------- http access

     

    And for the VPN messages we can't do much however nothing to worry about as the firewall will drop the unwanted VPN requests.

     

    Regards

    Sarab

    ===========================================================

    Pls click the button "Accept as Solution" if my post helped to solve your problem

     

     



  • 6.  RE: SSG5: Unauthorized login attempts

    Posted 12-03-2012 23:22

    Hi Sarab,

     

    I guess no other choice than setting the access ports.. As for VPN, glad to get confirmation on that. Only thing will be annoyed by the logs. 🙂

     

    Thanks for sharing.



  • 7.  RE: SSG5: Unauthorized login attempts

    Posted 12-03-2012 21:42

    What comes to your first question, I dont think that's possible. I would use manager-ip with wide enough netmask. For example allow your ISP's whole network so it doesnt matter if you have dynamic IP or always use some termination point to connect to your device if possible. There's always options like changing username or port where SSH listens or even null route IP's but those are kind of hacks instead of fixing the problem if you ask me.

     

    What comes to VPN let's start with the question is that a legit VPN peer? Should it be able to establish a IPSEC-tunnel with your device? If so, can you share your configuration with us.



  • 8.  RE: SSG5: Unauthorized login attempts

    Posted 12-03-2012 23:24

    Hi Tero,

     

    Thanks for your suggestion and for the VPN, definitely not a legit VPN peer. As Sarab confirmed, no way to block them, but should be no issue as the traffic will be dropped. Only problem is the logs will be full with those errors.

     

     



  • 9.  RE: SSG5: Unauthorized login attempts

     
    Posted 12-04-2012 00:15

    Hi,

     

    For logs you can refer the following KB to exclude them from appearing

     

    http://kb.juniper.net/KB25914



  • 10.  RE: SSG5: Unauthorized login attempts

    Posted 12-04-2012 01:04

    Hi Sarab,

     

    Thanks for the recommendations.