Internal IP forwarding RHELUtilizing multiple IPs provided by ISPInstall an Oracle DB in a linux VMDesigning segmented LAN with fairly shared hi-speed internet access on a tight budgetImprovements for small business network?
The instant an accelerating object has zero speed, is it speeding up, slowing down, or neither?
Why can't we feel the Earth's revolution?
IIS LAN and WAN separate SSL certificates for the same server
Will users know a CardView is clickable
How useful is the GRE Exam?
Sci-fi series about a mercenary with a spaceship with AI
Basic power tool set for Home repair and simple projects
Catching a robber on one line
First occurrence in the Sixers sequence
Is it a bad idea to have a pen name with only an initial for a surname?
How did the European Union reach the figure of 3% as a maximum allowed deficit?
Is there any effect in D&D 5e that cannot be undone?
On George Box, Galit Shmueli and the scientific method?
Why are almost all the people in this orchestra recording wearing headphones with one ear on and one ear off?
Is the Infant Mortality rate among African-Americans babies in Youngstown, Ohio greater than that of babies in Iran?
Sci fi/fantasy book, people stranded on a planet where tech doesn't work, magic mist
Should I email my professor to clear up a (possibly very irrelevant) awkward misunderstanding?
Background for black and white chart
How could I create a situation in which a PC has to make a saving throw or be forced to pet a dog?
Can a 40amp breaker be used safely and without issue with a 40amp device on 6AWG wire?
How do you say you know OF something?
Why is gun control associated with the socially liberal Democratic party?
Word-Ladder solver in Python 3
How did Avada Kedavra get its name?
Internal IP forwarding RHEL
Utilizing multiple IPs provided by ISPInstall an Oracle DB in a linux VMDesigning segmented LAN with fairly shared hi-speed internet access on a tight budgetImprovements for small business network?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
Thank you in advance for your response,
I've looked on the same question but nowhere to be found, so I'm gonna post here about my question,
So I have a RHEL OS and I have 2 separate IP(See Image)
IP1 is 192.168.10.3 as my web in port 80
IP2 is 192.168.11.3 as my web in port 80(Private)
External access on the firewall from WAN IP mapped to IP1
What I wanna do is when IP1 was accessed externally thru firewall WAN it will route to IP2 instead so I will serve the webpage of IP2, more like a proxy IP1 > IP2. is this possible with apache or nginx? I'm both new on this one and I'm at lost since the IP2 was private network and no internet access only can be, if possible an internal proxy or routing thru IP1.
IP2 cannot be directly mapped to firewall only IP1
will this be achievable from Iptables? like forward the network traffic from IP1:80 to IP2:80 and everytime IP1 is access thru the WAN mapped to, it will show the webpage for IP2?
Every ideas is accepted. Thank you very much community.
Best Regards,
Ian
See Image Below
linux networking apache-2.4 firewall-cmd
add a comment |
Thank you in advance for your response,
I've looked on the same question but nowhere to be found, so I'm gonna post here about my question,
So I have a RHEL OS and I have 2 separate IP(See Image)
IP1 is 192.168.10.3 as my web in port 80
IP2 is 192.168.11.3 as my web in port 80(Private)
External access on the firewall from WAN IP mapped to IP1
What I wanna do is when IP1 was accessed externally thru firewall WAN it will route to IP2 instead so I will serve the webpage of IP2, more like a proxy IP1 > IP2. is this possible with apache or nginx? I'm both new on this one and I'm at lost since the IP2 was private network and no internet access only can be, if possible an internal proxy or routing thru IP1.
IP2 cannot be directly mapped to firewall only IP1
will this be achievable from Iptables? like forward the network traffic from IP1:80 to IP2:80 and everytime IP1 is access thru the WAN mapped to, it will show the webpage for IP2?
Every ideas is accepted. Thank you very much community.
Best Regards,
Ian
See Image Below
linux networking apache-2.4 firewall-cmd
add a comment |
Thank you in advance for your response,
I've looked on the same question but nowhere to be found, so I'm gonna post here about my question,
So I have a RHEL OS and I have 2 separate IP(See Image)
IP1 is 192.168.10.3 as my web in port 80
IP2 is 192.168.11.3 as my web in port 80(Private)
External access on the firewall from WAN IP mapped to IP1
What I wanna do is when IP1 was accessed externally thru firewall WAN it will route to IP2 instead so I will serve the webpage of IP2, more like a proxy IP1 > IP2. is this possible with apache or nginx? I'm both new on this one and I'm at lost since the IP2 was private network and no internet access only can be, if possible an internal proxy or routing thru IP1.
IP2 cannot be directly mapped to firewall only IP1
will this be achievable from Iptables? like forward the network traffic from IP1:80 to IP2:80 and everytime IP1 is access thru the WAN mapped to, it will show the webpage for IP2?
Every ideas is accepted. Thank you very much community.
Best Regards,
Ian
See Image Below
linux networking apache-2.4 firewall-cmd
Thank you in advance for your response,
I've looked on the same question but nowhere to be found, so I'm gonna post here about my question,
So I have a RHEL OS and I have 2 separate IP(See Image)
IP1 is 192.168.10.3 as my web in port 80
IP2 is 192.168.11.3 as my web in port 80(Private)
External access on the firewall from WAN IP mapped to IP1
What I wanna do is when IP1 was accessed externally thru firewall WAN it will route to IP2 instead so I will serve the webpage of IP2, more like a proxy IP1 > IP2. is this possible with apache or nginx? I'm both new on this one and I'm at lost since the IP2 was private network and no internet access only can be, if possible an internal proxy or routing thru IP1.
IP2 cannot be directly mapped to firewall only IP1
will this be achievable from Iptables? like forward the network traffic from IP1:80 to IP2:80 and everytime IP1 is access thru the WAN mapped to, it will show the webpage for IP2?
Every ideas is accepted. Thank you very much community.
Best Regards,
Ian
See Image Below
linux networking apache-2.4 firewall-cmd
linux networking apache-2.4 firewall-cmd
edited May 31 at 3:10
Yien
asked May 31 at 2:44
YienYien
52
52
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
As I understand, IP1 as a reverse proxy for IP2. So I suggest you use Nginx to do this as below:
location /route
proxy_pass http://192.168.11.3:80/;
Also you can read more about proxy_pass at here. Hope this helps.
Hi TienPhan, thank you for your response sir, yes, so by this whenever every request from IP1 will serve pages dedicated for IP2? just to confirm, the server will be hosted by IP1.
– Yien
May 31 at 3:54
sure @Yien you have it. I also explain more clearly flow: client request ---> IP1 then forward ---> IP2. 1. client don't know existing IP2, they only know IP1. 2. when IP1 receives incoming request from client, it follows proxy_pass to forward to destination (IP2). So, you see IP1 is a reverse proxy of IP2. You can have more IP* behinds IP1 with the same approaches.
– TienPhan
May 31 at 4:46
Thanks a lot mate, this sure is solves my problem, i thought I'm gonna do some firewall stuff. Have a great day mate
– Yien
May 31 at 5:22
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f969582%2finternal-ip-forwarding-rhel%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
As I understand, IP1 as a reverse proxy for IP2. So I suggest you use Nginx to do this as below:
location /route
proxy_pass http://192.168.11.3:80/;
Also you can read more about proxy_pass at here. Hope this helps.
Hi TienPhan, thank you for your response sir, yes, so by this whenever every request from IP1 will serve pages dedicated for IP2? just to confirm, the server will be hosted by IP1.
– Yien
May 31 at 3:54
sure @Yien you have it. I also explain more clearly flow: client request ---> IP1 then forward ---> IP2. 1. client don't know existing IP2, they only know IP1. 2. when IP1 receives incoming request from client, it follows proxy_pass to forward to destination (IP2). So, you see IP1 is a reverse proxy of IP2. You can have more IP* behinds IP1 with the same approaches.
– TienPhan
May 31 at 4:46
Thanks a lot mate, this sure is solves my problem, i thought I'm gonna do some firewall stuff. Have a great day mate
– Yien
May 31 at 5:22
add a comment |
As I understand, IP1 as a reverse proxy for IP2. So I suggest you use Nginx to do this as below:
location /route
proxy_pass http://192.168.11.3:80/;
Also you can read more about proxy_pass at here. Hope this helps.
Hi TienPhan, thank you for your response sir, yes, so by this whenever every request from IP1 will serve pages dedicated for IP2? just to confirm, the server will be hosted by IP1.
– Yien
May 31 at 3:54
sure @Yien you have it. I also explain more clearly flow: client request ---> IP1 then forward ---> IP2. 1. client don't know existing IP2, they only know IP1. 2. when IP1 receives incoming request from client, it follows proxy_pass to forward to destination (IP2). So, you see IP1 is a reverse proxy of IP2. You can have more IP* behinds IP1 with the same approaches.
– TienPhan
May 31 at 4:46
Thanks a lot mate, this sure is solves my problem, i thought I'm gonna do some firewall stuff. Have a great day mate
– Yien
May 31 at 5:22
add a comment |
As I understand, IP1 as a reverse proxy for IP2. So I suggest you use Nginx to do this as below:
location /route
proxy_pass http://192.168.11.3:80/;
Also you can read more about proxy_pass at here. Hope this helps.
As I understand, IP1 as a reverse proxy for IP2. So I suggest you use Nginx to do this as below:
location /route
proxy_pass http://192.168.11.3:80/;
Also you can read more about proxy_pass at here. Hope this helps.
answered May 31 at 3:43
TienPhanTienPhan
503
503
Hi TienPhan, thank you for your response sir, yes, so by this whenever every request from IP1 will serve pages dedicated for IP2? just to confirm, the server will be hosted by IP1.
– Yien
May 31 at 3:54
sure @Yien you have it. I also explain more clearly flow: client request ---> IP1 then forward ---> IP2. 1. client don't know existing IP2, they only know IP1. 2. when IP1 receives incoming request from client, it follows proxy_pass to forward to destination (IP2). So, you see IP1 is a reverse proxy of IP2. You can have more IP* behinds IP1 with the same approaches.
– TienPhan
May 31 at 4:46
Thanks a lot mate, this sure is solves my problem, i thought I'm gonna do some firewall stuff. Have a great day mate
– Yien
May 31 at 5:22
add a comment |
Hi TienPhan, thank you for your response sir, yes, so by this whenever every request from IP1 will serve pages dedicated for IP2? just to confirm, the server will be hosted by IP1.
– Yien
May 31 at 3:54
sure @Yien you have it. I also explain more clearly flow: client request ---> IP1 then forward ---> IP2. 1. client don't know existing IP2, they only know IP1. 2. when IP1 receives incoming request from client, it follows proxy_pass to forward to destination (IP2). So, you see IP1 is a reverse proxy of IP2. You can have more IP* behinds IP1 with the same approaches.
– TienPhan
May 31 at 4:46
Thanks a lot mate, this sure is solves my problem, i thought I'm gonna do some firewall stuff. Have a great day mate
– Yien
May 31 at 5:22
Hi TienPhan, thank you for your response sir, yes, so by this whenever every request from IP1 will serve pages dedicated for IP2? just to confirm, the server will be hosted by IP1.
– Yien
May 31 at 3:54
Hi TienPhan, thank you for your response sir, yes, so by this whenever every request from IP1 will serve pages dedicated for IP2? just to confirm, the server will be hosted by IP1.
– Yien
May 31 at 3:54
sure @Yien you have it. I also explain more clearly flow: client request ---> IP1 then forward ---> IP2. 1. client don't know existing IP2, they only know IP1. 2. when IP1 receives incoming request from client, it follows proxy_pass to forward to destination (IP2). So, you see IP1 is a reverse proxy of IP2. You can have more IP* behinds IP1 with the same approaches.
– TienPhan
May 31 at 4:46
sure @Yien you have it. I also explain more clearly flow: client request ---> IP1 then forward ---> IP2. 1. client don't know existing IP2, they only know IP1. 2. when IP1 receives incoming request from client, it follows proxy_pass to forward to destination (IP2). So, you see IP1 is a reverse proxy of IP2. You can have more IP* behinds IP1 with the same approaches.
– TienPhan
May 31 at 4:46
Thanks a lot mate, this sure is solves my problem, i thought I'm gonna do some firewall stuff. Have a great day mate
– Yien
May 31 at 5:22
Thanks a lot mate, this sure is solves my problem, i thought I'm gonna do some firewall stuff. Have a great day mate
– Yien
May 31 at 5:22
add a comment |
Thanks for contributing an answer to Server Fault!
- 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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f969582%2finternal-ip-forwarding-rhel%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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