ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    CentOS 7 - Proxy Server

    IT Discussion
    linux centos centos 7 proxy
    2
    27
    4.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Alex Sage @scottalanmiller
      last edited by

      @scottalanmiller I did.

      scottalanmillerS 1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller @Alex Sage
        last edited by

        @anonymous said:

        @scottalanmiller I did.

        Then how would you ping it? Are you trying to ping it FROM the proxy?

        1 Reply Last reply Reply Quote 0
        • A
          Alex Sage @scottalanmiller
          last edited by

          @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"

          scottalanmillerS 1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @Alex Sage
            last edited by

            @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 🙂

            1 Reply Last reply Reply Quote 1
            • scottalanmillerS
              scottalanmiller
              last edited by

              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.

              1 Reply Last reply Reply Quote 0
              • A
                Alex Sage
                last edited by

                I am assuming when the proxy is working correctly I will be able to ping google.com from this server.

                scottalanmillerS 1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @Alex Sage
                  last edited by

                  @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.

                  1 Reply Last reply Reply Quote 1
                  • scottalanmillerS
                    scottalanmiller
                    last edited by

                    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.

                    1 Reply Last reply Reply Quote 0
                    • A
                      Alex Sage
                      last edited by

                      So.....

                      http_proxy=http://proxy_server_address:port
                      

                      Doesn't work

                      http_proxy=http://proxy_server_address:port yum -y update
                      

                      Works 😕

                      1 Reply Last reply Reply Quote 0
                      • scottalanmillerS
                        scottalanmiller
                        last edited by

                        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.

                        A 1 Reply Last reply Reply Quote 1
                        • A
                          Alex Sage @scottalanmiller
                          last edited by

                          @scottalanmiller I need to export it and reboot? Confused 😕

                          scottalanmillerS 1 Reply Last reply Reply Quote 0
                          • scottalanmillerS
                            scottalanmiller @Alex Sage
                            last edited by

                            @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.

                            A 1 Reply Last reply Reply Quote 1
                            • A
                              Alex Sage @scottalanmiller
                              last edited by

                              @scottalanmiller but I never rebooted.....

                              scottalanmillerS 1 Reply Last reply Reply Quote 0
                              • scottalanmillerS
                                scottalanmiller @Alex Sage
                                last edited by

                                @anonymous said:

                                @scottalanmiller but I never rebooted.....

                                I didn't say that you did, I said that you spawned a new shell.

                                1 Reply Last reply Reply Quote 0
                                • A
                                  Alex Sage
                                  last edited by

                                  To enable all yum operations to use a proxy server, specify the proxy server details in /etc/yum.conf. The proxy setting must specify the proxy server as a complete URL, including the TCP port number. If your proxy server requires a username and password, specify these by adding proxy_username and proxy_password settings.

                                  The settings below enable yum to use the proxy server mycache.mydomain.com, connecting to port 3128, with the username yum-user and the password qwerty.

                                  # The proxy server - proxy server:port number
                                  proxy=http://mycache.mydomain.com:3128
                                  # The account details for yum connections
                                  proxy_username=yum-user
                                  proxy_password=qwerty
                                  
                                  1 Reply Last reply Reply Quote 1
                                  • 1
                                  • 2
                                  • 2 / 2
                                  • First post
                                    Last post