Rework checkgw

please test this

regarding the packet mark thing: this is needed for ipv4 uplink over redundant gre tunnels (as freifunk rheinland offers it) which I will implement soon.