Fortigate 60e fails connecting through PPPoE
Hi!
I have a Fortigate 60e v6.4.1 build1637 (GA) that I want to use for practicing for my NSE4 exam.
I'm trying to connect it to Internet at home.
I have my ISP's ONT with port 1 in bridge mode. And actually, I use a TP-Link Archer C1200 as domestic router.
So I configure Fortigate's WAN interface in PPPoE mode, with user and password. But it fails every time.
I have tried to debbug the interface and this is what I have obtained:
PPP send: LCP Configure_Request id(1) len(14) [Maximum_Received_Unit 1492] [Magic_Number 4B598E75] PPP recv: LCP Configure_Request id(1) len(18) [Maximum_Received_Unit 1492] [Authentication_Protocol PAP] [Magic_Number 05458D59] PPP send: LCP Configure_Ack id(1) len(18) [Maximum_Received_Unit 1492] [Authentication_Protocol PAP] [Magic_Number 05458D59] PPP recv: LCP Configure_Ack id(1) len(14) [Maximum_Received_Unit 1492] [Magic_Number 4B598E75] PPP send: LCP Echo_Request id(0) len(8) [Magic_Number 4b598e75] [style="background-color: #ffff00;"]PPP send: PAP Authentication_Request id(1) peerid(len=8, *MyUser*)[/style] PPP recv: LCP Echo_Reply id(0) len(8) [Magic_Number 05458d59] [style="background-color: #ffff00;"]PPP recv: PAP Authentication_Nak id(1) packet_len=27, message_len=22[/style] PPP send: LCP Termiate_Request id(2) len(44) PPP recv: LCP Termiate_Request id(2) len(4) PPP send: LCP Terminate_Ack id(2) len(4) PPP recv: LCP Terminate_Ack id(2) len(4)
I have been reading here: https://www.freesoft.org/CIE/RFC/1334/7.htm
It says that Fortigate should be sending "Peer-ID Length" and "Peer-Id". But also "Passwd-Length" and "Password".
In first yellow line I see:
[ul]But I don't see "Passwd-Length" nor "Password". I don't know if it is sending it but the debbuging is not showing it. Or if it is not sending the password at all.
So, in the second yellow line it receives an Authetication_Nak. And, reading here: https://www.freesoft.org/CIE/RFC/1334/8.htm I see:
If the Peer-ID/Password pair received in a Authenticate-Request is not recognizable or acceptable, then the authenticator MUST transmit a PAP packet with the Code field set to 3 (Authenticate- Nak), and SHOULD take action to terminate the link.
So, I know that, in some way, the Forti is sending wrong credentials to my ISP. Because I change the patchcord to the TP-Link and it connects in a few seconds. And the TP-Link didn't need any special setting. Out-of-the-box, just user and password.
Questions: what can I do to see what the Fortigate is sending to the ISP? If it is or not sending the password. And, if it is sending the password, how is it sending it.
And, of course, what can I do to make it work?
This is the config of my wan interface. I changed the MTU to 1480 because, out-of-the-box, the TP-Link uses that value and it works fine:
FortiGate-60E (wan2) # show full-configuration config system interface edit "wan2" set vdom "root" set vrf 0 set fortilink disable set mode pppoe set distance 5 set priority 0 set dhcp-relay-service disable set allowaccess ping fgfm set fail-detect disable set arpforward enable set broadcast-forward disable set bfd global set l2forward disable set icmp-send-redirect enable set icmp-accept-redirect enable set vlanforward disable set stpforward disable set ips-sniffer-mode disable set ident-accept disable set ipmac disable set subst disable set substitute-dst-mac 00:00:00:00:00:00 set status up set netbios-forward disable set wins-ip 0.0.0.0 set type physical set netflow-sampler disable set sflow-sampler disable set src-check enable set sample-rate 2000 set polling-interval 20 set sample-direction both set explicit-web-proxy disable set explicit-ftp-proxy disable set proxy-captive-portal disable set tcp-mss 0 set inbandwidth 0 set outbandwidth 0 set egress-shaping-profile '' set ingress-shaping-profile '' set disconnect-threshold 0 set weight 0 set external disable set description '' set alias '' set l2tp-client disable set security-mode none set device-identification disable set lldp-reception vdom set lldp-transmission vdom set estimated-upstream-bandwidth 0 set estimated-downstream-bandwidth 0 set measured-upstream-bandwidth 0 set measured-downstream-bandwidth 0 set bandwidth-measure-time 0 set monitor-bandwidth disable set vrrp-virtual-mac disable set role wan set snmp-index 2 set preserve-session-route disable set auto-auth-extension-device disable set ap-discover enable set switch-controller-mgmt-vlan 4094 set switch-controller-igmp-snooping-proxy disable set switch-controller-igmp-snooping-fast-leave disable config ipv6 set ip6-mode static set nd-mode basic set ip6-address ::/0 unset ip6-allowaccess set ip6-reachable-time 0 set ip6-retrans-time 0 set ip6-hop-limit 0 set dhcp6-prefix-delegation disable set dhcp6-information-request disable set vrrp-virtual-mac6 disable set vrip6_link_local :: set ip6-send-adv disable set autoconf disable set dhcp6-relay-service disable end set ipunnumbered 0.0.0.0 set username "*MyUser*" set password ENC *password* set idle-timeout 0 set disc-retry-timeout 1 set padt-retry-timeout 1 set service-name '' set ac-name '' set lcp-echo-interval 5 set lcp-max-echo-fails 3 set defaultgw enable set dns-server-override enable set auth-type auto set speed auto set mtu-override enable set mtu 1480 set wccp disable set drop-overlapped-fragment disable set drop-fragment disable next end
Thanks in advance.
