CentOS 7 - Proxy Server
-
Ping doesn't work ether
-
I can ping the proxy, so no issue there.....
-
@anonymous said:
Ping doesn't work ether
Ping doesn't work in what way? You said that you can ping the proxy, so it sounds like ping it working.
-
@scottalanmiller I just tried to ping google.com
-
You are on IPv6? You have an IPv6 connection from your ISP?
-
@anonymous said:
@scottalanmiller I just tried to ping google.com
But I thought that you put in an HTTP Proxy?
-
@scottalanmiller I did.
-
@anonymous said:
@scottalanmiller I did.
Then how would you ping it? Are you trying to ping it FROM the proxy?
-
@scottalanmiller said:
You are on IPv6? You have an IPv6 connection from your ISP?
No. But isn't this a IPV6 address?
"Failed to connect to 2a02:2498:1:3d:5054:ff:fed3:e91a: Network is unreachable"
-
@anonymous said:
@scottalanmiller said:
You are on IPv6? You have an IPv6 connection from your ISP?
No. But isn't this a IPV6 address?
"Failed to connect to 2a02:2498:1:3d:5054:ff:fed3:e91a: Network is unreachable"
Yes, so you have IPv6 being used somewhere. You need to get everything onto IPv4 if you want that to work
-
Since that address would have to have come from DNS, I assume, then maybe the proxy things it is on IPv6 and is requesting AAAA records.
-
I am assuming when the proxy is working correctly I will be able to ping google.com from this server.
-
@anonymous said:
I am assuming when the proxy is working correctly I will be able to ping google.com from this server.
No, the purpose of using a web proxy is to block that, not allow it. You have no path for the ping to get to google.com since you just put in a proxy to block that.
-
If you accidentally forgot to lock down your firewall and left the routes on your server, then ping would continue to work as before, but then a proxy would be pretty silly as it wouldn't be doing its job in most cases. Assuming you configured the firewall to block outbound traffic that doesn't come from the proxy server, there would be no route for a ICMP packet to take to get to the Internet since the server isn't on the Internet anymore.
-
So.....
http_proxy=http://proxy_server_address:port
Doesn't work
http_proxy=http://proxy_server_address:port yum -y update
Works
-
I'm guessing you were not putting it into your profile or rc script to add it to your shell and were spawning a new shell without the proxy setting.
-
@scottalanmiller I need to export it and reboot? Confused
-
@anonymous said:
@scottalanmiller I need to export it and reboot? Confused
No, you have to add it to one of the files mentioned in order for it to apply after a reboot.
-
@scottalanmiller but I never rebooted.....
-
@anonymous said:
@scottalanmiller but I never rebooted.....
I didn't say that you did, I said that you spawned a new shell.