How do I set proxy for terminal?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I am using Lantern Proxy to open blocked websites. it's running on



http://localhost:44813


It works on Chrome well, but I want to set on Terminal. So I've run following commands:



export https_proxy='http://localhost:44813/'
export http_proxy='http://localhost:44813/'


and when I run



env | grep -i proxy


I see:



HTTP_PROXYs=http://localhost:44813/
NO_PROXY=localhost,127.0.0.0/8,::1
http_proxy=http://localhost:44813/
https_proxy=http://localhost:44813/
HTTPS_PROXY=http://localhost:44813/
no_proxy=localhost,127.0.0.0/8,::1
HTTP_PROXY=http://localhost:44813/


But I can't ping any blocked website!! how can I solve it?










share|improve this question



















  • 6




    ping is not http or https, so setting these proxies should have no effect on that. Don't try to ping. Try to actually fetch web pages, it should work.
    – egmont
    Mar 4 at 8:56










  • but when I ping unblocked site i have ping and it replyed. I just can't ping blocked websites!!
    – Rahman Jalayer
    Mar 4 at 9:03










  • Cross-posted: unix.stackexchange.com/q/428024/70524
    – muru
    Mar 4 at 9:23







  • 2




    "I just can't ping blocked websites!!" – this matches the very definition of "blocked", doesn't it? :-) By having a http(s) proxy, you find a different, unblocked route for http(s), but not for ping.
    – egmont
    Mar 4 at 10:43










  • Ping is not HTTP. Ping is in fact not even TCP. It's a protocol called ICMP. In addition, bypassing a proxy in your setup is trivial. If you want a filtering proxy, you probably don't want the clients to have a route to the Internet, but rather force them to go trough your proxy.
    – vidarlo
    Mar 4 at 10:46














up vote
0
down vote

favorite












I am using Lantern Proxy to open blocked websites. it's running on



http://localhost:44813


It works on Chrome well, but I want to set on Terminal. So I've run following commands:



export https_proxy='http://localhost:44813/'
export http_proxy='http://localhost:44813/'


and when I run



env | grep -i proxy


I see:



HTTP_PROXYs=http://localhost:44813/
NO_PROXY=localhost,127.0.0.0/8,::1
http_proxy=http://localhost:44813/
https_proxy=http://localhost:44813/
HTTPS_PROXY=http://localhost:44813/
no_proxy=localhost,127.0.0.0/8,::1
HTTP_PROXY=http://localhost:44813/


But I can't ping any blocked website!! how can I solve it?










share|improve this question



















  • 6




    ping is not http or https, so setting these proxies should have no effect on that. Don't try to ping. Try to actually fetch web pages, it should work.
    – egmont
    Mar 4 at 8:56










  • but when I ping unblocked site i have ping and it replyed. I just can't ping blocked websites!!
    – Rahman Jalayer
    Mar 4 at 9:03










  • Cross-posted: unix.stackexchange.com/q/428024/70524
    – muru
    Mar 4 at 9:23







  • 2




    "I just can't ping blocked websites!!" – this matches the very definition of "blocked", doesn't it? :-) By having a http(s) proxy, you find a different, unblocked route for http(s), but not for ping.
    – egmont
    Mar 4 at 10:43










  • Ping is not HTTP. Ping is in fact not even TCP. It's a protocol called ICMP. In addition, bypassing a proxy in your setup is trivial. If you want a filtering proxy, you probably don't want the clients to have a route to the Internet, but rather force them to go trough your proxy.
    – vidarlo
    Mar 4 at 10:46












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am using Lantern Proxy to open blocked websites. it's running on



http://localhost:44813


It works on Chrome well, but I want to set on Terminal. So I've run following commands:



export https_proxy='http://localhost:44813/'
export http_proxy='http://localhost:44813/'


and when I run



env | grep -i proxy


I see:



HTTP_PROXYs=http://localhost:44813/
NO_PROXY=localhost,127.0.0.0/8,::1
http_proxy=http://localhost:44813/
https_proxy=http://localhost:44813/
HTTPS_PROXY=http://localhost:44813/
no_proxy=localhost,127.0.0.0/8,::1
HTTP_PROXY=http://localhost:44813/


But I can't ping any blocked website!! how can I solve it?










share|improve this question















I am using Lantern Proxy to open blocked websites. it's running on



http://localhost:44813


It works on Chrome well, but I want to set on Terminal. So I've run following commands:



export https_proxy='http://localhost:44813/'
export http_proxy='http://localhost:44813/'


and when I run



env | grep -i proxy


I see:



HTTP_PROXYs=http://localhost:44813/
NO_PROXY=localhost,127.0.0.0/8,::1
http_proxy=http://localhost:44813/
https_proxy=http://localhost:44813/
HTTPS_PROXY=http://localhost:44813/
no_proxy=localhost,127.0.0.0/8,::1
HTTP_PROXY=http://localhost:44813/


But I can't ping any blocked website!! how can I solve it?







command-line proxy






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 5 at 20:55









Zanna

48.2k13120228




48.2k13120228










asked Mar 4 at 8:52









Rahman Jalayer

11




11







  • 6




    ping is not http or https, so setting these proxies should have no effect on that. Don't try to ping. Try to actually fetch web pages, it should work.
    – egmont
    Mar 4 at 8:56










  • but when I ping unblocked site i have ping and it replyed. I just can't ping blocked websites!!
    – Rahman Jalayer
    Mar 4 at 9:03










  • Cross-posted: unix.stackexchange.com/q/428024/70524
    – muru
    Mar 4 at 9:23







  • 2




    "I just can't ping blocked websites!!" – this matches the very definition of "blocked", doesn't it? :-) By having a http(s) proxy, you find a different, unblocked route for http(s), but not for ping.
    – egmont
    Mar 4 at 10:43










  • Ping is not HTTP. Ping is in fact not even TCP. It's a protocol called ICMP. In addition, bypassing a proxy in your setup is trivial. If you want a filtering proxy, you probably don't want the clients to have a route to the Internet, but rather force them to go trough your proxy.
    – vidarlo
    Mar 4 at 10:46












  • 6




    ping is not http or https, so setting these proxies should have no effect on that. Don't try to ping. Try to actually fetch web pages, it should work.
    – egmont
    Mar 4 at 8:56










  • but when I ping unblocked site i have ping and it replyed. I just can't ping blocked websites!!
    – Rahman Jalayer
    Mar 4 at 9:03










  • Cross-posted: unix.stackexchange.com/q/428024/70524
    – muru
    Mar 4 at 9:23







  • 2




    "I just can't ping blocked websites!!" – this matches the very definition of "blocked", doesn't it? :-) By having a http(s) proxy, you find a different, unblocked route for http(s), but not for ping.
    – egmont
    Mar 4 at 10:43










  • Ping is not HTTP. Ping is in fact not even TCP. It's a protocol called ICMP. In addition, bypassing a proxy in your setup is trivial. If you want a filtering proxy, you probably don't want the clients to have a route to the Internet, but rather force them to go trough your proxy.
    – vidarlo
    Mar 4 at 10:46







6




6




ping is not http or https, so setting these proxies should have no effect on that. Don't try to ping. Try to actually fetch web pages, it should work.
– egmont
Mar 4 at 8:56




ping is not http or https, so setting these proxies should have no effect on that. Don't try to ping. Try to actually fetch web pages, it should work.
– egmont
Mar 4 at 8:56












but when I ping unblocked site i have ping and it replyed. I just can't ping blocked websites!!
– Rahman Jalayer
Mar 4 at 9:03




but when I ping unblocked site i have ping and it replyed. I just can't ping blocked websites!!
– Rahman Jalayer
Mar 4 at 9:03












Cross-posted: unix.stackexchange.com/q/428024/70524
– muru
Mar 4 at 9:23





Cross-posted: unix.stackexchange.com/q/428024/70524
– muru
Mar 4 at 9:23





2




2




"I just can't ping blocked websites!!" – this matches the very definition of "blocked", doesn't it? :-) By having a http(s) proxy, you find a different, unblocked route for http(s), but not for ping.
– egmont
Mar 4 at 10:43




"I just can't ping blocked websites!!" – this matches the very definition of "blocked", doesn't it? :-) By having a http(s) proxy, you find a different, unblocked route for http(s), but not for ping.
– egmont
Mar 4 at 10:43












Ping is not HTTP. Ping is in fact not even TCP. It's a protocol called ICMP. In addition, bypassing a proxy in your setup is trivial. If you want a filtering proxy, you probably don't want the clients to have a route to the Internet, but rather force them to go trough your proxy.
– vidarlo
Mar 4 at 10:46




Ping is not HTTP. Ping is in fact not even TCP. It's a protocol called ICMP. In addition, bypassing a proxy in your setup is trivial. If you want a filtering proxy, you probably don't want the clients to have a route to the Internet, but rather force them to go trough your proxy.
– vidarlo
Mar 4 at 10:46










1 Answer
1






active

oldest

votes

















up vote
3
down vote













The name "http proxy" implies that it is only for http/https. Using a http-proxy has no influence on the operation of other protocols.



Ping is part of ICMP and only works when you can reach the target host via IP, i.E. it is not blocked by some kind of firewall.






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    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',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1011730%2fhow-do-i-set-proxy-for-terminal%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    3
    down vote













    The name "http proxy" implies that it is only for http/https. Using a http-proxy has no influence on the operation of other protocols.



    Ping is part of ICMP and only works when you can reach the target host via IP, i.E. it is not blocked by some kind of firewall.






    share|improve this answer
























      up vote
      3
      down vote













      The name "http proxy" implies that it is only for http/https. Using a http-proxy has no influence on the operation of other protocols.



      Ping is part of ICMP and only works when you can reach the target host via IP, i.E. it is not blocked by some kind of firewall.






      share|improve this answer






















        up vote
        3
        down vote










        up vote
        3
        down vote









        The name "http proxy" implies that it is only for http/https. Using a http-proxy has no influence on the operation of other protocols.



        Ping is part of ICMP and only works when you can reach the target host via IP, i.E. it is not blocked by some kind of firewall.






        share|improve this answer












        The name "http proxy" implies that it is only for http/https. Using a http-proxy has no influence on the operation of other protocols.



        Ping is part of ICMP and only works when you can reach the target host via IP, i.E. it is not blocked by some kind of firewall.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 4 at 10:46









        guntbert

        8,759123067




        8,759123067



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1011730%2fhow-do-i-set-proxy-for-terminal%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491