Configuring linux as a forwarder to forward another ip
Posted: 2018/10/14 15:19:15
I wish to configure my centos 7 as a router using firewall-cmd that act some kind of proxy
incoming traffic (port 80)-> centos 7 (forwarder, check dest ip address in blacklist, if match forward to http server) -> HTTP server(listening port 80)which show access denied page.
In networking point of view, dst ip nat to http server ip
If I wish to configure something like that , does my centos 7 need to listen to port 80?
It might not be just limited to port 80 , could be some other ports , then I will check if dest ip address in blacklist
incoming traffic (port 80)-> centos 7 (forwarder, check dest ip address in blacklist, if match forward to http server) -> HTTP server(listening port 80)which show access denied page.
In networking point of view, dst ip nat to http server ip
If I wish to configure something like that , does my centos 7 need to listen to port 80?
It might not be just limited to port 80 , could be some other ports , then I will check if dest ip address in blacklist