Re: Redirect domain to specific port

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Ashley M. Kirchner" <ashley@xxxxxxxxxx> wrote:

Arthur Pemberton wrote:
> The only way i know of is to have an ip per domain, then you can route
> accordingly.
Well, in that sense, I can add more IPs to the same interface (eth0:0, eth0:1, etc., etc.) but I still don't know how to route them afterwards.
Try a firewall rule along the lines of:

iptables -A PREROUTING -t nat -p tcp -d 123.45.67.89 --dport 8081 -j DNAT --to 192.168.0.5:5901

This port forwards 123.45.67.89:8081 to 192.168.0.5:5901 Replace the port numbers and IP addresses as appropriate. If you know the address of the connecting systems, you can lock things down a little better by specifying the source addresses. If VNC is running on the destination system, there is only password protection to keep the bad guys out.

Cheers,
Dave

--
Politics, n. Strife of interests masquerading as a contest of principles.
-- Ambrose Bierce


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux