How to make HTTP proxy to the VPN Tunnel?

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











up vote
0
down vote

favorite












I have a VPN tunnel running, where test.google.com = VPN HTTP server with IP 10.0.0.3.



So I have /etc/hosts with DNS mapping test.google.com = 10.0.0.3 when I ping test.google.com it works.



Now externally I need to test HTTP access so I applied the following:



$ socat TCP-LISTEN:9999,fork,reuseaddr TCP:test.google.com


Now when I browse http://myserver.com:9999 then it fails.



SRVE0255E: A WebGroup/Virtual Host to handle /stackoverflow/test has not been defined. 
SRVE0255E: A WebGroup/Virtual Host to handle myserver.com has not been defined.
IBM WebSphere Application Server









share|improve this question



















  • 1




    Websphere hasn't been configured to answer requests for myserver.com. You'll need a reverse proxy running on myserver.com.
    – Gerard H. Pille
    Sep 3 at 8:01











  • Which reverse proxy? how do i do that reverse proxy using socat?
    – YumYumYum
    Sep 3 at 9:47







  • 1




    I don't think socat can serve as a reverse proxy. If you don't know the meaning of a reverse proxy, please look it up. I'm thinking of haproxy or nginx.
    – Gerard H. Pille
    Sep 3 at 19:51














up vote
0
down vote

favorite












I have a VPN tunnel running, where test.google.com = VPN HTTP server with IP 10.0.0.3.



So I have /etc/hosts with DNS mapping test.google.com = 10.0.0.3 when I ping test.google.com it works.



Now externally I need to test HTTP access so I applied the following:



$ socat TCP-LISTEN:9999,fork,reuseaddr TCP:test.google.com


Now when I browse http://myserver.com:9999 then it fails.



SRVE0255E: A WebGroup/Virtual Host to handle /stackoverflow/test has not been defined. 
SRVE0255E: A WebGroup/Virtual Host to handle myserver.com has not been defined.
IBM WebSphere Application Server









share|improve this question



















  • 1




    Websphere hasn't been configured to answer requests for myserver.com. You'll need a reverse proxy running on myserver.com.
    – Gerard H. Pille
    Sep 3 at 8:01











  • Which reverse proxy? how do i do that reverse proxy using socat?
    – YumYumYum
    Sep 3 at 9:47







  • 1




    I don't think socat can serve as a reverse proxy. If you don't know the meaning of a reverse proxy, please look it up. I'm thinking of haproxy or nginx.
    – Gerard H. Pille
    Sep 3 at 19:51












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have a VPN tunnel running, where test.google.com = VPN HTTP server with IP 10.0.0.3.



So I have /etc/hosts with DNS mapping test.google.com = 10.0.0.3 when I ping test.google.com it works.



Now externally I need to test HTTP access so I applied the following:



$ socat TCP-LISTEN:9999,fork,reuseaddr TCP:test.google.com


Now when I browse http://myserver.com:9999 then it fails.



SRVE0255E: A WebGroup/Virtual Host to handle /stackoverflow/test has not been defined. 
SRVE0255E: A WebGroup/Virtual Host to handle myserver.com has not been defined.
IBM WebSphere Application Server









share|improve this question















I have a VPN tunnel running, where test.google.com = VPN HTTP server with IP 10.0.0.3.



So I have /etc/hosts with DNS mapping test.google.com = 10.0.0.3 when I ping test.google.com it works.



Now externally I need to test HTTP access so I applied the following:



$ socat TCP-LISTEN:9999,fork,reuseaddr TCP:test.google.com


Now when I browse http://myserver.com:9999 then it fails.



SRVE0255E: A WebGroup/Virtual Host to handle /stackoverflow/test has not been defined. 
SRVE0255E: A WebGroup/Virtual Host to handle myserver.com has not been defined.
IBM WebSphere Application Server






centos vpn http-proxy socat






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 3 at 6:03









slm♦

239k65494665




239k65494665










asked Sep 3 at 5:49









YumYumYum

1,559113364




1,559113364







  • 1




    Websphere hasn't been configured to answer requests for myserver.com. You'll need a reverse proxy running on myserver.com.
    – Gerard H. Pille
    Sep 3 at 8:01











  • Which reverse proxy? how do i do that reverse proxy using socat?
    – YumYumYum
    Sep 3 at 9:47







  • 1




    I don't think socat can serve as a reverse proxy. If you don't know the meaning of a reverse proxy, please look it up. I'm thinking of haproxy or nginx.
    – Gerard H. Pille
    Sep 3 at 19:51












  • 1




    Websphere hasn't been configured to answer requests for myserver.com. You'll need a reverse proxy running on myserver.com.
    – Gerard H. Pille
    Sep 3 at 8:01











  • Which reverse proxy? how do i do that reverse proxy using socat?
    – YumYumYum
    Sep 3 at 9:47







  • 1




    I don't think socat can serve as a reverse proxy. If you don't know the meaning of a reverse proxy, please look it up. I'm thinking of haproxy or nginx.
    – Gerard H. Pille
    Sep 3 at 19:51







1




1




Websphere hasn't been configured to answer requests for myserver.com. You'll need a reverse proxy running on myserver.com.
– Gerard H. Pille
Sep 3 at 8:01





Websphere hasn't been configured to answer requests for myserver.com. You'll need a reverse proxy running on myserver.com.
– Gerard H. Pille
Sep 3 at 8:01













Which reverse proxy? how do i do that reverse proxy using socat?
– YumYumYum
Sep 3 at 9:47





Which reverse proxy? how do i do that reverse proxy using socat?
– YumYumYum
Sep 3 at 9:47





1




1




I don't think socat can serve as a reverse proxy. If you don't know the meaning of a reverse proxy, please look it up. I'm thinking of haproxy or nginx.
– Gerard H. Pille
Sep 3 at 19:51




I don't think socat can serve as a reverse proxy. If you don't know the meaning of a reverse proxy, please look it up. I'm thinking of haproxy or nginx.
– Gerard H. Pille
Sep 3 at 19:51















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
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: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f466492%2fhow-to-make-http-proxy-to-the-vpn-tunnel%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f466492%2fhow-to-make-http-proxy-to-the-vpn-tunnel%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?