Page 1 of 1

Fake IPs to real ones?

Posted: 2018/10/18 07:54:16
by heretech
Good day.

I have a small network built around CentOS 7 router.
I want one VLAN which can access only specific IPs. Trouble is, I don't want to share details to users. So the permitted IPs looks like "1.1.1.1" or "4.4.4.4" which must be redirected to some real IPs with non-standart ports.

So... how can I redirect all requests to 1.1.1.1:80 to, for example 54.167.21.30:218? In theory, there must be some iptables rule for it? Can someone provide an example?

Re: Fake IPs to real ones?

Posted: 2018/10/21 10:29:28
by hunter86_bg
See the following if you use the default firewalld:

Code: Select all

man firewalld.richlanguage