Jump to content

CentOS external IP

Go to solution Solved by SupaKomputa,

Set default gateway to the router's ip address.

I have a very simple issue, but one of those ones I just cannot remember how to do.

 

The situation is pretty simple.

 

I have BT fibre broadband with my router from them in bridge mode. It runs to a Unifi Dream Machine Pro which just uses it as a modem effectively via PPPoE login. 

 

BT have allocated me 5 external static IP addresses.

 

I have created a forwarding rule for ports 443, 80 & 8080 from the external IP ***.**.***.57 to the local IP of the server 10.0.1.87.

 

My issue is to do with traffic going out the way. The server is seeing my main IP address for my fibre connection, not the ***.**.***.57 address above. I can't remember how to manually set the IP address for the traffic to go out via the fixed external IP address on CentOS

 

I know its a stupid setting somewhere but simply, for the life of me can't remember where to input it. I'm sure its somewhere in the normal NIC settings for IPv4, but can't remember. 

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

Set default gateway to the router's ip address.

Ryzen 5700g @ 4.4ghz all cores | Asrock B550M Steel Legend | 3060 | 2x 16gb Micron E 2666 @ 4200mhz cl16 | 500gb WD SN750 | 12 TB HDD | Deepcool Gammax 400 w/ 2 delta 4000rpm push pull | Antec Neo Eco Zen 500w

Link to comment
Share on other sites

Link to post
Share on other sites

20 minutes ago, SupaKomputa said:

Set default gateway to the router's ip address.

Deh! Thank you! If only we could defrag our own brains. Or at the very least run a disk cleanup. LOL

 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×