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

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux