Dear Tyler,

Thanks for your guidance. It started working on local IP but when any one tries to access this server using squid public IP address it could not connects.

Why its not working on public IP.

Best regards,

On Tue, May 31, 2011 at 1:42 PM, Tyler J. Wagner <> wrote:
On Mon, 2011-05-30 at 09:32 +0500, Ashfaq A Khan wrote:
> Pl guide me in webmin for port forwarding for following situation., I
> have a local web server with IP address port 81, this
> server is working behind the fedora(squid) machine,, I want to access
> this local web server from my home, What will be the configuration
> steps in webmin.

You want to create a port-forwarding rule from the squid machine, TCP
port 81, to the local web server.

Login to webmin on the squid server
Networking -> Linux Firewall
Showing iptable: Network address translation (nat)
In the PREROUTING chain, add a new rule

* Chain and action details
Action to take: destination NAT
IPs and ports for DNAT: to, port 81 to 81

* Condition details
Network protocol: equals TCP
Destination TCP or UDP port: equals port 81

Click Create
Click Apply Configuration
Click Activate at Boot, if not already set

If you already have an active firewall, this may not work for you. You
must create the rule in the right place in the list.


"Freedom of thought is best promoted by the gradual illumination of
men's minds, which follows from the advance of science."
  -- Charles Darwin

Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
Forwarded by the Webmin mailing list at
To remove yourself from this list, go to

Ashfaq A Khan
System Officer

Peshawar Campus, Pakistan.
UAN: (+)92 - 91-111-128-128 Ext:150