On Wed, Feb 25, 2015 at 2:16 AM, Kai Krakow <hurikha...@gmail.com> wrote: > Hello! > > Is it possible to somehow create a service which enables port forwardings on > my router using upnp? Currently, I guess it is not possible (except maybe > using ExecPost or ExecPre and the upnpc program). But when my client IP > changes via DHCP, it should be reapplied. Also, it needs to be maintained as > the programmed port forwardings would timeout and be cleared from the router > after a while. So it needs to be hooked up to systemd-networkd somehow (at > least that is what I am using). > > Please advice and tell your thoughts. Maybe it is just plain insane...
It seems like it would be easy to do this using dhcpcd or dhclient via a hook/script, assuming your DHCP lease times are shorter than the UPnP timeout period. I'm not sure if/how it would be possible when using networkd to configure the interface. _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel