how to send requests with floating ip instead of actual ip linux
up vote
0
down vote
favorite
I am using Heztner server for running my application, which owns IP as 95.216.167.191
. Then I added a floating Ip which was 159.69.100.75
.
I added this floating IP to network settings as well as
nano /etc/network/interfaces.d/60-my-floating-ip.cfg
and pasted this
auto eth0:1
iface eth0:1 inet static
address 159.69.100.75
netmask 32
then restarted network as sudo service networking restart
.
Even though now when I send a curl request to another system as
curl -X POST -F 'firstname=floating' -F 'lastname=iping' -F 'username=iamfloating' -F 'email=fffloating@email.com' -F 'password=floatingpass' -F 'token=web' https://media.evercam.io/v1/users
still, as a result of that request, my actual IP is being used.
[POST v1/users] [curl/7.47.0] [95.216.167.191] [fffloating@email.com] [fffloating@email.com] [web]
what I am doing wrong? the thing I want to achieve is, to send all the requests either its POST
, PUT
, GET
or DELETE
from floating IP, not the actual one.
18.04 ip reverse-proxy
add a comment |
up vote
0
down vote
favorite
I am using Heztner server for running my application, which owns IP as 95.216.167.191
. Then I added a floating Ip which was 159.69.100.75
.
I added this floating IP to network settings as well as
nano /etc/network/interfaces.d/60-my-floating-ip.cfg
and pasted this
auto eth0:1
iface eth0:1 inet static
address 159.69.100.75
netmask 32
then restarted network as sudo service networking restart
.
Even though now when I send a curl request to another system as
curl -X POST -F 'firstname=floating' -F 'lastname=iping' -F 'username=iamfloating' -F 'email=fffloating@email.com' -F 'password=floatingpass' -F 'token=web' https://media.evercam.io/v1/users
still, as a result of that request, my actual IP is being used.
[POST v1/users] [curl/7.47.0] [95.216.167.191] [fffloating@email.com] [fffloating@email.com] [web]
what I am doing wrong? the thing I want to achieve is, to send all the requests either its POST
, PUT
, GET
or DELETE
from floating IP, not the actual one.
18.04 ip reverse-proxy
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am using Heztner server for running my application, which owns IP as 95.216.167.191
. Then I added a floating Ip which was 159.69.100.75
.
I added this floating IP to network settings as well as
nano /etc/network/interfaces.d/60-my-floating-ip.cfg
and pasted this
auto eth0:1
iface eth0:1 inet static
address 159.69.100.75
netmask 32
then restarted network as sudo service networking restart
.
Even though now when I send a curl request to another system as
curl -X POST -F 'firstname=floating' -F 'lastname=iping' -F 'username=iamfloating' -F 'email=fffloating@email.com' -F 'password=floatingpass' -F 'token=web' https://media.evercam.io/v1/users
still, as a result of that request, my actual IP is being used.
[POST v1/users] [curl/7.47.0] [95.216.167.191] [fffloating@email.com] [fffloating@email.com] [web]
what I am doing wrong? the thing I want to achieve is, to send all the requests either its POST
, PUT
, GET
or DELETE
from floating IP, not the actual one.
18.04 ip reverse-proxy
I am using Heztner server for running my application, which owns IP as 95.216.167.191
. Then I added a floating Ip which was 159.69.100.75
.
I added this floating IP to network settings as well as
nano /etc/network/interfaces.d/60-my-floating-ip.cfg
and pasted this
auto eth0:1
iface eth0:1 inet static
address 159.69.100.75
netmask 32
then restarted network as sudo service networking restart
.
Even though now when I send a curl request to another system as
curl -X POST -F 'firstname=floating' -F 'lastname=iping' -F 'username=iamfloating' -F 'email=fffloating@email.com' -F 'password=floatingpass' -F 'token=web' https://media.evercam.io/v1/users
still, as a result of that request, my actual IP is being used.
[POST v1/users] [curl/7.47.0] [95.216.167.191] [fffloating@email.com] [fffloating@email.com] [web]
what I am doing wrong? the thing I want to achieve is, to send all the requests either its POST
, PUT
, GET
or DELETE
from floating IP, not the actual one.
18.04 ip reverse-proxy
18.04 ip reverse-proxy
edited Oct 16 at 7:31
asked Oct 16 at 6:13
Junaid Farooq
11318
11318
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Ask Ubuntu!
- 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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2faskubuntu.com%2fquestions%2f1084148%2fhow-to-send-requests-with-floating-ip-instead-of-actual-ip-linux%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