1/11/2024 0 Comments Webmin ports![]() Iptables -t nat -A PREROUTING -p tcp -i eth0 -dport 80 -j DNAT -to 192.168.1.201:80įorwards request to the firewall for port 80 to 192.168.1.201. Where portnum is the port number requested by the external request and ipaddress:portnum is the internal address and portnumber of the server and the daemon the server provides Iptables -t nat -A PREROUTING -p tcp -i eth0 -dport portnum -j DNAT -to ipaddress:portnum To do this using iptables, use the PREROUTING chain within the nat table as follows This may not be so desirable with respect to the exposing an internal port to the outside world. To avoid having to use a public IP address, it is possible for the firewall to forward the incoming request (from outside the local area network) to the internal server. There may be occasions where the local area network behind a masquerading firewall contains a server which needs to be publicly accessed. Iptables and port forwarding should solve your problem. The test in this case is SSH, and I know that SSHD is working properly because I can log into that machine just fine from another PC on the same internal subnet. But when I log in to :port, it just times out. I *am* opening the ports in the firewall. But there's obviously something they're leaving out. I've read the sparse Webmin documentation in their Wiki, and it leads one to believe that you simply insert a "NAT" rule. But OpenSuse 10.3 is nearing EOL, we're buying a new machine, and I'd like to use CentOS on the new one. We're currently using OpenSuse 10.3 on this box, and YaST makes this criminally easy (you give it the incoming port number and the destination IP/port numbers and it just works). We have a BUNCH of exposed services that are on special ports - for example, to connect to one machine, you go in with :12000, and to connect to another, :12002, etc., etc. ![]() Internet - NIC1 NIC2 - Switch to other PCs Can anyone here point me to a walk-through or discussion of how to use Webmin to set up port forwarding/NAT on a dual-NIC Centos 5.3 box? The layout will be simple:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |