Firewall Rules

Akshay Lamba akshay at
Wed Aug 22 18:57:06 UTC 2007

Victor Padro wrote:
> Hello there!
> I am researching some NAT/firewall rules in order to implement a 
> ubuntu 6.06LTS box as a firewall/router with only one Public IP...the 
> catch is that i want to use a couple of servers behind the firewall 
> using web/ftp/mail services, using their own ports(80, 443, 21, 25, 
> etc.) Can this be done?  i read something about DNAT but i am confused 
> if i have to change the servers ports to something like 1050, 1053, 
> 10023, etc.  any suggestions about t? 
I'm not very comfortable with iptables just yet, so while I brush up on 
those skills, I've implemented what you're suggesting via shorewall and 
webmin's shorewall module. I believe the REDIRECT keyword is what u're 
looking for here.


More information about the ubuntu-users mailing list