I cannot make command
wget work behind a router. Here are my situation and network settings.
In organization A's network, I have a router (R) which connects a few servers (X, Y, Z), and R resides in A's network. R has IP like
184.108.40.206 X has IP like
192.168.98.76 under R with portal
2210. In other words,
192.168.98.76 is X's IP assigned by R whose IP assigned by A is
220.127.116.11. Basically R is the router of a subnetwork within A.
I usually VPN to A, then get to X via a router with the following command, just to give you an idea of this:
ssh -p 2210 myUsername@18.104.22.168
After I'm prompted with a password entry, I'm on X and need use
wget to download something such as:
# output below:
--2019-05-15 01:02:03-- https://www.gnu.org/software/wget/ Resolving ftp.gnu.org ... failed: Temporary failure in name resolution wget: unable to resolve host address 'ftp.gnu.org'
The file of
/etc/network/interfaces looks like this:
source /etc/network/interfaces.d/* # there's no file in this .d folder # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eno1 iface eno1 inet static address 192.168.98.76 # I used X's ip under router gateway 22.214.171.124 # I used the router's ip netmask 255.255.255.0 dns-nameservers 126.96.36.199
As suggested, I checked
server can't find www.gnu.org.xxx.com: REFUSED
where xxx is my company's name, which I'm not sure where comes from (rounter?)
A is usually very strict on network security settings. I'm not sure if this is due to A's setting or due to my Ubuntu settings.
How can I solve this issue?