Need to use my home IP form remote server












1















I need to outgoing with my home IP from my remote VPS
So I buy a raspberry pi 3 with raspian and place it at home.

I have install Squid and I setup with this sample rules:



acl me src MY_VPS_IP/32
visible_hostname myProxy
http_access allow me
dns_nameservers 8.8.4.4 8.8.8.8
access_log /var/log/squid/access.log squid
cache_log /var/log/squid/cache.log
http_port 5432 intercept


I open port 5432 in my router foreword to my raspberry.



If I try to setup proxy in my firefox from my vps and I navigate to http site proxy server response with access deny in my access log there is



TCP_DENIED/403 4091 GET http://www.mio-ip.it/ - HIER_NONE/- text/html


so... I need to configure same iptables on my raspberry? This is the right way to do this ?? I don't want any cache only IP redirect.

There is method to work with https and http as a transparent proxy? (not configure cert on my vps firefox)



thanks in advance!










share|improve this question



























    1















    I need to outgoing with my home IP from my remote VPS
    So I buy a raspberry pi 3 with raspian and place it at home.

    I have install Squid and I setup with this sample rules:



    acl me src MY_VPS_IP/32
    visible_hostname myProxy
    http_access allow me
    dns_nameservers 8.8.4.4 8.8.8.8
    access_log /var/log/squid/access.log squid
    cache_log /var/log/squid/cache.log
    http_port 5432 intercept


    I open port 5432 in my router foreword to my raspberry.



    If I try to setup proxy in my firefox from my vps and I navigate to http site proxy server response with access deny in my access log there is



    TCP_DENIED/403 4091 GET http://www.mio-ip.it/ - HIER_NONE/- text/html


    so... I need to configure same iptables on my raspberry? This is the right way to do this ?? I don't want any cache only IP redirect.

    There is method to work with https and http as a transparent proxy? (not configure cert on my vps firefox)



    thanks in advance!










    share|improve this question

























      1












      1








      1








      I need to outgoing with my home IP from my remote VPS
      So I buy a raspberry pi 3 with raspian and place it at home.

      I have install Squid and I setup with this sample rules:



      acl me src MY_VPS_IP/32
      visible_hostname myProxy
      http_access allow me
      dns_nameservers 8.8.4.4 8.8.8.8
      access_log /var/log/squid/access.log squid
      cache_log /var/log/squid/cache.log
      http_port 5432 intercept


      I open port 5432 in my router foreword to my raspberry.



      If I try to setup proxy in my firefox from my vps and I navigate to http site proxy server response with access deny in my access log there is



      TCP_DENIED/403 4091 GET http://www.mio-ip.it/ - HIER_NONE/- text/html


      so... I need to configure same iptables on my raspberry? This is the right way to do this ?? I don't want any cache only IP redirect.

      There is method to work with https and http as a transparent proxy? (not configure cert on my vps firefox)



      thanks in advance!










      share|improve this question














      I need to outgoing with my home IP from my remote VPS
      So I buy a raspberry pi 3 with raspian and place it at home.

      I have install Squid and I setup with this sample rules:



      acl me src MY_VPS_IP/32
      visible_hostname myProxy
      http_access allow me
      dns_nameservers 8.8.4.4 8.8.8.8
      access_log /var/log/squid/access.log squid
      cache_log /var/log/squid/cache.log
      http_port 5432 intercept


      I open port 5432 in my router foreword to my raspberry.



      If I try to setup proxy in my firefox from my vps and I navigate to http site proxy server response with access deny in my access log there is



      TCP_DENIED/403 4091 GET http://www.mio-ip.it/ - HIER_NONE/- text/html


      so... I need to configure same iptables on my raspberry? This is the right way to do this ?? I don't want any cache only IP redirect.

      There is method to work with https and http as a transparent proxy? (not configure cert on my vps firefox)



      thanks in advance!







      proxy raspberry-pi squid






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 5 at 19:12









      r1sir1si

      1115




      1115






















          1 Answer
          1






          active

          oldest

          votes


















          0














          After a lot of search i found a right configuration...
          only squid no iptables



          acl localnet src 192.168.178.0/24
          acl my_allowed_ip src n.n.n.n/32 # INSERT HERE YOUR IP ALLOWED TO USED PROXY
          acl SSL_ports port 443
          acl Safe_ports port 80 # http
          acl Safe_ports port 21 # ftp
          acl Safe_ports port 443 # https
          acl CONNECT method CONNECT
          http_access allow my_allowed_ip
          http_port PORT #INSERT HERE YOUR PROXY PORT
          http_port PORT transparent #INSERT HERE YOUR PROXY PORT





          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1402371%2fneed-to-use-my-home-ip-form-remote-server%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            After a lot of search i found a right configuration...
            only squid no iptables



            acl localnet src 192.168.178.0/24
            acl my_allowed_ip src n.n.n.n/32 # INSERT HERE YOUR IP ALLOWED TO USED PROXY
            acl SSL_ports port 443
            acl Safe_ports port 80 # http
            acl Safe_ports port 21 # ftp
            acl Safe_ports port 443 # https
            acl CONNECT method CONNECT
            http_access allow my_allowed_ip
            http_port PORT #INSERT HERE YOUR PROXY PORT
            http_port PORT transparent #INSERT HERE YOUR PROXY PORT





            share|improve this answer




























              0














              After a lot of search i found a right configuration...
              only squid no iptables



              acl localnet src 192.168.178.0/24
              acl my_allowed_ip src n.n.n.n/32 # INSERT HERE YOUR IP ALLOWED TO USED PROXY
              acl SSL_ports port 443
              acl Safe_ports port 80 # http
              acl Safe_ports port 21 # ftp
              acl Safe_ports port 443 # https
              acl CONNECT method CONNECT
              http_access allow my_allowed_ip
              http_port PORT #INSERT HERE YOUR PROXY PORT
              http_port PORT transparent #INSERT HERE YOUR PROXY PORT





              share|improve this answer


























                0












                0








                0







                After a lot of search i found a right configuration...
                only squid no iptables



                acl localnet src 192.168.178.0/24
                acl my_allowed_ip src n.n.n.n/32 # INSERT HERE YOUR IP ALLOWED TO USED PROXY
                acl SSL_ports port 443
                acl Safe_ports port 80 # http
                acl Safe_ports port 21 # ftp
                acl Safe_ports port 443 # https
                acl CONNECT method CONNECT
                http_access allow my_allowed_ip
                http_port PORT #INSERT HERE YOUR PROXY PORT
                http_port PORT transparent #INSERT HERE YOUR PROXY PORT





                share|improve this answer













                After a lot of search i found a right configuration...
                only squid no iptables



                acl localnet src 192.168.178.0/24
                acl my_allowed_ip src n.n.n.n/32 # INSERT HERE YOUR IP ALLOWED TO USED PROXY
                acl SSL_ports port 443
                acl Safe_ports port 80 # http
                acl Safe_ports port 21 # ftp
                acl Safe_ports port 443 # https
                acl CONNECT method CONNECT
                http_access allow my_allowed_ip
                http_port PORT #INSERT HERE YOUR PROXY PORT
                http_port PORT transparent #INSERT HERE YOUR PROXY PORT






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 6 at 13:21









                r1sir1si

                1115




                1115






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1402371%2fneed-to-use-my-home-ip-form-remote-server%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                    Mangá

                    Eduardo VII do Reino Unido