Linux.com

setevoy

setevoy

  • Linux.com Member
  • Posts: 1
  • Member Since: 01 Apr
  • Last Logged In: 07 Apr

Latest Posts

Posted by
Topic
Post Preview
Posted
  • setevoy
    traffic redirection by domain name to external addresses
    Hi. We using [b]Linux CentOS[/b]. For example - we have 3 hosts - [i]host1.domain.com[/i], [i]host2.domain.com[/i], [i]host3.domain.com[/i]. Hosts connected via VPN. Task: [i]host1.domain.com[/i] must be a gateway for http/https traffic, and redirect requestes to [i]host2.domain.com[/i] and [i]host3.domain.com[/i]. [i]host1.domain.com[/i] will have external IP and accepts request on 80 port. [i]host2.domain.com[/i] and [i]host3.domain.com[/i] - internal IP and accepts request on 8080 and 8443 ports. How this can be realised? IPTABLES, NGINX, something else? And - what about other traffic? SSH, samba etc. Thanks.
    Link to this post 01 Apr

    Hi.

    We using Linux CentOS.

    For example - we have 3 hosts - host1.domain.com, host2.domain.com, host3.domain.com. Hosts connected via VPN.

    Task: host1.domain.com must be a gateway for http/https traffic, and redirect requestes to host2.domain.com and host3.domain.com.

    host1.domain.com will have external IP and accepts request on 80 port.

    host2.domain.com and host3.domain.com - internal IP and accepts request on 8080 and 8443 ports.

    How this can be realised? IPTABLES, NGINX, something else?

    And - what about other traffic? SSH, samba etc.

    Thanks.

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board