You are not logged in.

#1 2021-03-16 08:42:16

Evergreen
Member
Registered: 2016-08-14
Posts: 16

[Solved]Can't open a website on new arch install but can with live usb

I installed archlinux on my lab desktop but am facing network issues. First, a couple of points specific to our lab:
1) We cannot ping servers on the internet, e.g. ping www.google.com doesn't work even on machines connected to the internet and working fine.
2) To access the internet, we have to enter our credentials in a local webpage. This is the site I am trying to open currently and failing. The ip is 10.201.250.201 


During installation using a live usb, I opened 10.201.250.201 in lynx and connected to the internet and downloaded packages e.g. vim, elinks, lynx using pacman. I checked that it used dhcp.

After installation, I am unable to access the internet because I cannot load the one particular internal website, namely 10.201.250.201, on elinks and lynx. I can ping the site though.

Here is the output of 'networkctl -a status' when using live usb and when everything works fine-

● 1: lo                                                                 
                     Link File: /usr/lib/systemd/network/99-default.link
                  Network File: n/a                                     
                          Type: loopback                               
                         State: carrier (unmanaged)                     
                    HW Address: 00:00:00:00:00:00                       
                           MTU: 65536                                   
                         QDisc: noqueue                                 
  IPv6 Address Generation Mode: eui64                                   
          Queue Length (Tx/Rx): 1/1                                     
                       Address: 127.0.0.1                               
                                ::1                                     

● 2: enp0s25                                                                 
                     Link File: /usr/lib/systemd/network/99-default.link     
                  Network File: /etc/systemd/network/20-ethernet.network     
                          Type: ether                                       
                         State: routable (configured)                       
                          Path: pci-0000:00:19.0                             
                        Driver: e1000e                                       
                        Vendor: Intel Corporation                           
                         Model: Ethernet Connection I217-V                   
                    HW Address: 00:22:4d:b0:a3:7e (MITAC INTERNATIONAL CORP.)
                           MTU: 1500 (min: 68, max: 9000)                   
                         QDisc: fq_codel                                     
  IPv6 Address Generation Mode: eui64                                       
          Queue Length (Tx/Rx): 1/1                                         
              Auto negotiation: yes                                         
                         Speed: 1Gbps                                       
                        Duplex: full                                         
                          Port: tp                                           
                       Address: 10.130.166.204 (DHCP4 via 10.130.5.1)       
                                fe80::222:4dff:feb0:a37e                     
                       Gateway: 10.130.166.250 (Cisco Systems, Inc)         
                           DNS: 10.129.3.12                                 
                           NTP: 10.200.1.15                                 
               DHCP4 Client ID: IAID:0x4c11263c/DUID                         
             DHCP6 Client DUID: DUID-EN/Vendor:0000ab11bb7ad49c9efb64910000 
                  Connected To: n/a on port gi1/1/4                         
                                n/a on port gi1/1/5                         
                                n/a on port gi1/1/7                         

Mar 15 08:56:58 archiso systemd-networkd[344]: enp0s25: Link UP
Mar 15 08:57:01 archiso systemd-networkd[344]: enp0s25: Gained carrier
Mar 15 08:57:02 archiso systemd-networkd[344]: enp0s25: DHCPv4 address 10.130.166.204/24 via 10.130.166.250
Mar 15 08:57:02 archiso systemd-networkd[344]: enp0s25: Gained IPv6LL

Here is the output when things don't work using local arch install on the desktop.

* 1: lo                                                                 
                     Link File: /usr/lib/systemd/network/99-default.link
                  Network File: n/a                                     
                          Type: loopback                               
                         State: carrier (unmanaged)                     
                    HW Address: 00:00:00:00:00:00                       
                           MTU: 65536                                   
                         QDisc: noqueue                                 
  IPv6 Address Generation Mode: eui64                                   
          Queue Length (Tx/Rx): 1/1                                     
                       Address: 127.0.0.1                               
                                ::1                                     

* 2: enp0s25                                                                 
                     Link File: /usr/lib/systemd/network/99-default.link     
                  Network File: /etc/systemd/network/20-ethernet.network     
                          Type: ether                                       
                         State: routable (configured)                       
                          Path: pci-0000:00:19.0                             
                        Driver: e1000e                                       
                        Vendor: Intel Corporation                           
                         Model: Ethernet Connection I217-V                   
                    HW Address: 00:22:4d:b0:a3:7e (MITAC INTERNATIONAL CORP.)
                           MTU: 1500 (min: 68, max: 9000)                   
                         QDisc: fq_codel                                     
  IPv6 Address Generation Mode: eui64                                       
          Queue Length (Tx/Rx): 1/1                                         
              Auto negotiation: yes                                         
                         Speed: 1Gbps                                       
                        Duplex: full                                         
                          Port: tp                                           
                       Address: 10.130.166.210 (DHCP4 via 10.130.5.1)       
                                fe80::222:4dff:feb0:a37e                     
                       Gateway: 10.130.166.250 (Cisco Systems, Inc)         
                           DNS: 10.129.3.12                                 
                           NTP: 10.200.1.15                                 
               DHCP4 Client ID: IAID:0x4c11263c/DUID                         
             DHCP6 Client DUID: DUID-EN/Vendor:0000ab115f46709a6bb42c630000 
                  Connected To: n/a on port gi1/1/4                         
                                n/a on port gi1/1/5                         
                                n/a on port gi1/1/7                         

Mar 15 18:08:46 archlinux systemd-networkd[274]: enp0s25: Link UP
Mar 15 18:08:49 archlinux systemd-networkd[274]: enp0s25: Gained carrier
Mar 15 18:08:50 archlinux systemd-networkd[274]: enp0s25: DHCPv4 address 10.130.166.210/24 via 10.130.166.250
Mar 15 18:08:50 archlinux systemd-networkd[274]: enp0s25: Gained IPv6LL

I can ping the login website. But if I do `lynx 10.201.250.201', I get the following

Looking up 10.201.250.201 first
Looking up 10.201.250.201
Making HTTP connection to 10.201.250.201
Sending HTTP request.
HTTP request sent; waiting for response.
HTTP/1.1 302 Moved Temporarily
Data transfer complete
HTTP/1.1 302 Moved Temporarily
Using https://<local-login-website>/index.php?redirecthost=10.201.250.201/&
Looking up <local-login-website>
Unable to locate remote host <local-login-website>
Alert!: Unable to connect to remote host.

lynx:Can't access startfile http://10.201.250.201/

What am I doing wrong?

EDIT: I just noticed that I can access other local websites. E.g.- lynx 10.109.1.11 works as expected. But the all important login webpage is not opening. I don't know if this is an issue with my arch installation, or with our local login. But if someone can think of some solution (since the webpage opens when using the arch live usb), then it'll be very helpful.

Last edited by Evergreen (2021-03-16 09:40:00)

Offline

#2 2021-03-16 09:23:30

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: [Solved]Can't open a website on new arch install but can with live usb

Have you enabled systemd-resolved? That is required so that networkd can set the dns server. It looks like there is a HTTP redirect to a hostname that cannot be resolved.

Last edited by progandy (2021-03-16 09:24:16)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#3 2021-03-16 09:38:16

Evergreen
Member
Registered: 2016-08-14
Posts: 16

Re: [Solved]Can't open a website on new arch install but can with live usb

progandy wrote:

Have you enabled systemd-resolved? That is required so that networkd can set the dns server. It looks like there is a HTTP redirect to a hostname that cannot be resolved.

wow, you're right. I started and enabled systemd-resolved.service, and now the page opens. Thanks a lot for resolving wink the issue.

----


PS- I forgot to mention in my initial post that when I first tried ping <local-website>, it gave me an error regarding name resolution. But I thought that directly using the ip of the local website will not require dns.

Offline

#4 2021-03-16 10:02:23

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: [Solved]Can't open a website on new arch install but can with live usb

Using the IP directly does not require dns, that's why the initial connection succeeds. In your case the response is a redirect without an IP, though:

HTTP/1.1 302 Moved Temporarily
Using https://<local-login-website>/index.php?redirecthost=10.201.250.201/&
Looking up <local-login-website>

| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#5 2021-03-16 10:11:48

Evergreen
Member
Registered: 2016-08-14
Posts: 16

Re: [Solved]Can't open a website on new arch install but can with live usb

Thanks for explaining. I can now understand the lynx error message and what was happening.

Offline

Board footer

Powered by FluxBB