SRX

 View Only
last person joined: yesterday 

Ask questions and share experiences about the SRX Series, vSRX, and cSRX.
  • 1.  Juniper Security Connect gives an error: PAP/CHAP Error

    Posted 01-29-2024 12:58

     SRX300 is running in a cluster:
    Junos: 21.4R3-S3.4
    JUNOS Software Release [21.4R3-S3.4].

    Configured a VPN connection using the official source:
    https://www.youtube.com/watch?v=j5p1jQTfILM

    When I try to connect, I get an error:
    PAP/CHAP error
    Wrong User ID or password (VPN)

    In the client program log:
    ERROR - 2110: XAUTH wrong Userid or Password

    Which sections of the configuration should I output?

    I checked every line. I carefully entered the username and password.
    Thank you for your time.



    ------------------------------
    Denis Rasskazov
    ------------------------------


  • 2.  RE: Juniper Security Connect gives an error: PAP/CHAP Error

    Posted 01-29-2024 16:25
    Hi Denis,

    Which VPN you configured? IPsec or remote? IPsec tunnel you no need to give userID. Remote yes. Please configure the user account and then bind the user to that tunnel.

    Regards 
    Prashant 

    On Mon, 29 Jan 2024 at 6:57 PM, Denis Rasskazov via Juniper Networks <Mail@community.juniper.net> wrote:
    SRX300 is running in a cluster: Junos: 21.4R3-S3.4 JUNOS Software Release [21.4R3-S3.4]. Configured a VPN connection using the official source:... -posted to the "SRX Next-Gen Firewalls" community
    Earn 6 Juniper certifications.
    Free training/Discounted exams
    Juniper Email Header

    SRX

    Post New Message
    Juniper Security Connect gives an error: PAP/CHAP Error
    Reply to Group Reply to Sender
    Jan 29, 2024 12:58 PM
    Denis Rasskazov

     SRX300 is running in a cluster:
    Junos: 21.4R3-S3.4
    JUNOS Software Release [21.4R3-S3.4].

    Configured a VPN connection using the official source:
    www.youtube.com/watch?v=j5p1jQTfILM

    When I try to connect, I get an error:
    PAP/CHAP error
    Wrong User ID or password (VPN)

    In the client program log:
    ERROR - 2110: XAUTH wrong Userid or Password

    Which sections of the configuration should I output?

    I checked every line. I carefully entered the username and password.
    Thank you for your time.



    ------------------------------
    Denis Rasskazov
    ------------------------------
      Reply to Group Online   View Thread   Recommend   Forward   Flag as Inappropriate  



     
    You are subscribed to "SRX" as prashanthnaik.k@gmail.com. To change your subscriptions, go to My Subscriptions. To unsubscribe from this community discussion, go to Unsubscribe.





  • 3.  RE: Juniper Security Connect gives an error: PAP/CHAP Error

    Posted 01-30-2024 07:12

    I use IPsec in my configuration.
    I have published a VPN account in the section:
    set access profile JSC-VPN-Access client VPN-ACCOUNT firewall-user password "HASH"

    How can I {link | bind} an account to an IPsec tunnel?



    ------------------------------
    Denis Rasskazov
    ------------------------------



  • 4.  RE: Juniper Security Connect gives an error: PAP/CHAP Error

    Posted 04-14-2025 23:37

    Hi Denis,

    Did you end up finding a resolution to this problem, I'm seeing the same error and have not found a resolution as yet.
    I am continuing to research this and can replicate the problem on multiple platforms using certificate-based Secure Connect configurations.

    I would be interested if you found a solution.

    Regards, 



    ------------------------------
    GAVIN WHITE
    ------------------------------



  • 5.  RE: Juniper Security Connect gives an error: PAP/CHAP Error

    Posted 4 days ago

    Hey Gavin,

    I am having the same error, did you figure this out yet?

    Best,

    Eddie.



    ------------------------------
    EDDIE RULE
    ------------------------------



  • 6.  RE: Juniper Security Connect gives an error: PAP/CHAP Error

    Posted 4 days ago

    Hi Eddie,

    Yes, I have managed to get past the PAP/CHAP error; however, as I'd forgotten about this article, my notes on the matter are not strong. 

    This may be related to Certificate-Based Secure Connect only though. That appears to require an external source of authentication, such as RADIUS or LDAP server. From packet captures and process flows I have observed there are two stages to the connection/authentication process. The first is authentication to download the configuration file from the SRX. This is typically done via Certificate validation or PSK. The second is user authentication, which was traditionally done using the same local user/profile but is now disaggregated into external authentication or firewall authentication. 

    Below is a current working snippet of the authentication configuration.... 

    > show configuration access
    profile SECURE_CONNECT_ACC-PRO {
        authentication-order [ radius password ];
        client test {
            firewall-user {
                password "$9$"; ## SECRET-DATA
            }
        }
        client test2 {
            firewall-user {
                password "$9$"; ## SECRET-DATA
            }
        }
        address-assignment {
            pool SECURE_CONNECT_ADDR-POOL;
        }
        radius-server {
            x.x.x.x {
                secret "$9$"; ## SECRET-DATA
                source-address x.x.x.y;
            }
        }
    }
    

    For more information, see my git repo for a full Secure Connect VPN Configuration...
    https://github.com/thewhitehouse007/junos-config-templates/blob/main/remote_vpn.j2 

    If you search the access profile name "SECURE_CONNECT_ACC-PRO" in the repo, you will see the association of the access profile to the ike gateway and remote-access profile.



    ------------------------------
    GAVIN WHITE
    ------------------------------