Fake IPs to real ones?

Issues related to configuring your network
Post Reply
heretech
Posts: 4
Joined: 2018/09/28 14:30:02
Location: Kyiv, UA

Fake IPs to real ones?

Post by heretech » 2018/10/18 07:54:16

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?

hunter86_bg
Posts: 1424
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: Fake IPs to real ones?

Post by hunter86_bg » 2018/10/21 10:29:28

See the following if you use the default firewalld:

Code: Select all

man firewalld.richlanguage

Post Reply