[Firewall] using host names

Arno van Amersfoort arnova at rocky.eld.leidenuniv.nl
Thu Apr 18 17:19:29 CEST 2013


Unfortunately using dynamic host names is not possible with forwarding, 
assuming that your IPs are not fixed.

As a workaround you either need to restart the whole firewall (from a 
cron job) or create a seperate script that handles this (again called by 
a cron job)....

a.

On 04/16/2013 01:37 AM, Randy wrote:
> Arno,
>
> Thanks for a great firewall.
>
> Is it possable to use host names instead of ip's to foward ports?
>
> I have a machine set up an an external firewall. I use your script for
> the firewall. This machine also does NAT, chache DyDNS, Routing, and
> DHCP. I receintly enabled the dynamic dns and removed a lot of the
> statically assigned ip's.
>
> I do need to be able to forward a couple of ports to some of these
> formaly static machines.
>
> Something like NAT_FORWARD_TCP="12764>somehost"
>
> In the future I want to do the same thing for dmz
>
> Thanks.
>
> Randy
>
> --
>
> If it ain't broke tweek it
>
>
>
> _______________________________________________
> Firewall mailing list
> Firewall at rocky.eld.leidenuniv.nl
> http://rocky.eld.leidenuniv.nl/mailman/listinfo/firewall
> Arno's (Linux IPTABLES Firewall) Homepage:
> http://rocky.eld.leidenuniv.nl
>


More information about the Firewall mailing list