Port fowarding and load balancer in ubuntu server 12.04Redirect requests to my external IP/port to an...
Identity of a supposed anonymous referee revealed through "Description" of the report
How to handle DM constantly stealing everything from sleeping characters?
Why is there a cap on 401k contributions?
How to get MAX value using SOQL when there are more than 50,000 rows
if i accidentally leaked my schools ip address and someone d doses my school am i at fault
Is it a Munchausen Number?
Names of the Six Tastes
resoldering copper waste pipe
Are there vaccine ingredients which may not be disclosed ("hidden", "trade secret", or similar)?
Is there a need for better software for writers?
How do carbureted and fuel injected engines compare in high altitude?
Is there an application which does HTTP PUT?
Hexagonal Grid Filling
Renting a house to a graduate student in my department
Rusty Chain and back cassette – Replace or Repair?
Can a planet still function with a damaged moon?
Has everyone forgotten about wildfire?
Why do the Avengers care about returning these items in Endgame?
Publishing an article in a journal without a related degree
How to avoid making self and former employee look bad when reporting on fixing former employee's work?
Not taking the bishop with the knight, why?
Was Mohammed the most popular first name for boys born in Berlin in 2018?
A Latin text with dependency tree
Can I bring back Planetary Romance as a genre?
Port fowarding and load balancer in ubuntu server 12.04
Redirect requests to my external IP/port to an internal IP/port?Unable to access an http sevice forwarded using sshCan I forward all traffic on a port to a complete different IP address?Forward all traffic from Android to Ubuntu server running privoxy (iptables)Openvpn Port Forwarding for a game serveriptables rules for two different lxc containersPort forward to vpn client and from the client forward further to local IPRunning Ubuntu Router using Iptables Services; How to Block UPnP UDP Traffic Forwarding Between Private IP and Public Address (NAT Involved)?Xen on Ubuntu 18.04 with IPv4 (NAT) and IPv6
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I am looking to create a load balancing server. Essentially here is what I want to do:
I have a public IP address, lets say 1.1.1.1 I have a second public IP address, lets say 2.2.2.2. I have a website, www.f.com point to 1.1.1.1 via an A record. I want that Ubuntu server to forward traffic like this:
- Port 80 traffic is forwarded to 2.2.2.2 on port 60,000 and port 60,001.
- Port 443 traffic is forwaded to 2.2.2.2 on port 60,010 and port 60,011.
- Port 25 traffic is forwared to 2.2.2.2 on port 60,020 and port 60,021
The port forwarding is more important then being able to load balance.
I look forward to some responses. Both server 1.1.1.1 and 2.2.2.2 are both running Ubuntu 12.04 server edition.
iptables port-forwarding load-balancing
bumped to the homepage by Community♦ 12 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I am looking to create a load balancing server. Essentially here is what I want to do:
I have a public IP address, lets say 1.1.1.1 I have a second public IP address, lets say 2.2.2.2. I have a website, www.f.com point to 1.1.1.1 via an A record. I want that Ubuntu server to forward traffic like this:
- Port 80 traffic is forwarded to 2.2.2.2 on port 60,000 and port 60,001.
- Port 443 traffic is forwaded to 2.2.2.2 on port 60,010 and port 60,011.
- Port 25 traffic is forwared to 2.2.2.2 on port 60,020 and port 60,021
The port forwarding is more important then being able to load balance.
I look forward to some responses. Both server 1.1.1.1 and 2.2.2.2 are both running Ubuntu 12.04 server edition.
iptables port-forwarding load-balancing
bumped to the homepage by Community♦ 12 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
1
This seems more like a proxy setup and less of a load balancer...you can useiptables
to do forwarding for you.
– sparticvs
Dec 3 '12 at 4:29
Is it necessary to keep into account whether the destination port is up? If not, iptables DNAT rules should be able to do it...
– Gert van den Berg
Dec 3 '12 at 6:27
using LVS would make more sense here than iptables
– Rui F Ribeiro
Nov 16 '15 at 7:40
add a comment |
I am looking to create a load balancing server. Essentially here is what I want to do:
I have a public IP address, lets say 1.1.1.1 I have a second public IP address, lets say 2.2.2.2. I have a website, www.f.com point to 1.1.1.1 via an A record. I want that Ubuntu server to forward traffic like this:
- Port 80 traffic is forwarded to 2.2.2.2 on port 60,000 and port 60,001.
- Port 443 traffic is forwaded to 2.2.2.2 on port 60,010 and port 60,011.
- Port 25 traffic is forwared to 2.2.2.2 on port 60,020 and port 60,021
The port forwarding is more important then being able to load balance.
I look forward to some responses. Both server 1.1.1.1 and 2.2.2.2 are both running Ubuntu 12.04 server edition.
iptables port-forwarding load-balancing
I am looking to create a load balancing server. Essentially here is what I want to do:
I have a public IP address, lets say 1.1.1.1 I have a second public IP address, lets say 2.2.2.2. I have a website, www.f.com point to 1.1.1.1 via an A record. I want that Ubuntu server to forward traffic like this:
- Port 80 traffic is forwarded to 2.2.2.2 on port 60,000 and port 60,001.
- Port 443 traffic is forwaded to 2.2.2.2 on port 60,010 and port 60,011.
- Port 25 traffic is forwared to 2.2.2.2 on port 60,020 and port 60,021
The port forwarding is more important then being able to load balance.
I look forward to some responses. Both server 1.1.1.1 and 2.2.2.2 are both running Ubuntu 12.04 server edition.
iptables port-forwarding load-balancing
iptables port-forwarding load-balancing
edited Jul 12 '13 at 17:59
Braiam
23.9k2078144
23.9k2078144
asked Dec 3 '12 at 2:32
Matthew St Nicholas IversonMatthew St Nicholas Iverson
244
244
bumped to the homepage by Community♦ 12 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 12 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
1
This seems more like a proxy setup and less of a load balancer...you can useiptables
to do forwarding for you.
– sparticvs
Dec 3 '12 at 4:29
Is it necessary to keep into account whether the destination port is up? If not, iptables DNAT rules should be able to do it...
– Gert van den Berg
Dec 3 '12 at 6:27
using LVS would make more sense here than iptables
– Rui F Ribeiro
Nov 16 '15 at 7:40
add a comment |
1
This seems more like a proxy setup and less of a load balancer...you can useiptables
to do forwarding for you.
– sparticvs
Dec 3 '12 at 4:29
Is it necessary to keep into account whether the destination port is up? If not, iptables DNAT rules should be able to do it...
– Gert van den Berg
Dec 3 '12 at 6:27
using LVS would make more sense here than iptables
– Rui F Ribeiro
Nov 16 '15 at 7:40
1
1
This seems more like a proxy setup and less of a load balancer...you can use
iptables
to do forwarding for you.– sparticvs
Dec 3 '12 at 4:29
This seems more like a proxy setup and less of a load balancer...you can use
iptables
to do forwarding for you.– sparticvs
Dec 3 '12 at 4:29
Is it necessary to keep into account whether the destination port is up? If not, iptables DNAT rules should be able to do it...
– Gert van den Berg
Dec 3 '12 at 6:27
Is it necessary to keep into account whether the destination port is up? If not, iptables DNAT rules should be able to do it...
– Gert van den Berg
Dec 3 '12 at 6:27
using LVS would make more sense here than iptables
– Rui F Ribeiro
Nov 16 '15 at 7:40
using LVS would make more sense here than iptables
– Rui F Ribeiro
Nov 16 '15 at 7:40
add a comment |
3 Answers
3
active
oldest
votes
I would recommend Pound (http://www.apsis.ch/pound). It's lightweight, easy to configure, handles https quick and efficient, and does exactly what you want.
add a comment |
If you are looking to load balance data. I might recomend you to use varnish. It is easy to install and set and easy to add nodes later
add a comment |
If you want to serve HTTP
or raw TCP
traffic, HAProxy
might be a good option to you. It satisfies all the conditions you provided above.
References:
- http://www.haproxy.org/
add a comment |
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',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f57419%2fport-fowarding-and-load-balancer-in-ubuntu-server-12-04%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
I would recommend Pound (http://www.apsis.ch/pound). It's lightweight, easy to configure, handles https quick and efficient, and does exactly what you want.
add a comment |
I would recommend Pound (http://www.apsis.ch/pound). It's lightweight, easy to configure, handles https quick and efficient, and does exactly what you want.
add a comment |
I would recommend Pound (http://www.apsis.ch/pound). It's lightweight, easy to configure, handles https quick and efficient, and does exactly what you want.
I would recommend Pound (http://www.apsis.ch/pound). It's lightweight, easy to configure, handles https quick and efficient, and does exactly what you want.
answered Dec 3 '12 at 19:25
DokaDoka
614
614
add a comment |
add a comment |
If you are looking to load balance data. I might recomend you to use varnish. It is easy to install and set and easy to add nodes later
add a comment |
If you are looking to load balance data. I might recomend you to use varnish. It is easy to install and set and easy to add nodes later
add a comment |
If you are looking to load balance data. I might recomend you to use varnish. It is easy to install and set and easy to add nodes later
If you are looking to load balance data. I might recomend you to use varnish. It is easy to install and set and easy to add nodes later
answered Jul 15 '15 at 21:15
dSoultanisdSoultanis
1212
1212
add a comment |
add a comment |
If you want to serve HTTP
or raw TCP
traffic, HAProxy
might be a good option to you. It satisfies all the conditions you provided above.
References:
- http://www.haproxy.org/
add a comment |
If you want to serve HTTP
or raw TCP
traffic, HAProxy
might be a good option to you. It satisfies all the conditions you provided above.
References:
- http://www.haproxy.org/
add a comment |
If you want to serve HTTP
or raw TCP
traffic, HAProxy
might be a good option to you. It satisfies all the conditions you provided above.
References:
- http://www.haproxy.org/
If you want to serve HTTP
or raw TCP
traffic, HAProxy
might be a good option to you. It satisfies all the conditions you provided above.
References:
- http://www.haproxy.org/
answered Jan 1 '18 at 11:26
xulsitatirevxulsitatirev
52917
52917
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f57419%2fport-fowarding-and-load-balancer-in-ubuntu-server-12-04%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
1
This seems more like a proxy setup and less of a load balancer...you can use
iptables
to do forwarding for you.– sparticvs
Dec 3 '12 at 4:29
Is it necessary to keep into account whether the destination port is up? If not, iptables DNAT rules should be able to do it...
– Gert van den Berg
Dec 3 '12 at 6:27
using LVS would make more sense here than iptables
– Rui F Ribeiro
Nov 16 '15 at 7:40