Re: allowing packets from dynamic-dns IP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Saturday 2008-04-26 21:25, Grant Taylor wrote:

> On 4/26/2008 1:16 PM, Jan Engelhardt wrote:
>
>> The best solution is a script that runs after the interface was
>> brought up. Usually this is -- depending on distro -- in
>> /etc/sysconfig/network/if-up.d/.
>
> I took the OP's question to be how does the static IP destination
> system adjust rules to allow a dynamic IP source system in based on
> the dynamic IP, not how does the dynamic IP system update its
> rules.  If the latter is the case, what you suggest will work
> great.

It is the same -- the dynamic system runs a custom script in ifup
that notifies the static one. Can be portknocking, or a http,
or a netcat.

> I think I would be tempted to use port knocking to initiate
> updating the IPTables rules.  I.e. have the dynamic system connect
> on a range of ports that will then trigger the firewall to do a DNS
> query and then update the firewall rules if need be.  I would never
> update the firewall rules based on the source IP of the knock.  I
> would be much more comfortable initiating a DNS query and trusting
> the query results than I would the arbitrary source of the port
> knock.
>
> I also would be tempted to check the result of the DNS query against the
> currently allowed IP address and only change the IPTables rule if the IP
> changes.

So why not just set up an ipsec tunnel... :^)
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux