kernel: IPv4: host 192.168.1.29/if2 ignores redirects for 192.168.1.6 to 192.168.1.6
I have the messages above in the log on Edgerouter X. If they occur then Hairpin NAT does not work for the connected device 192.168.1.29 .
192.168.1.6 is a Debian server with DynDNS and Port 443 ist forwared . If i call the DynDNS adress internaly over Wifi with my Android Device - 192.168.1.29 i can not reach it. However, it is rare and then works for a time correctly .
Additional info: I have a Netgear R7000 as Access Point on 192.168.1.20 . Meanwhile, I noticed that I can connect me via WIFI only one device (Tested with Macbook Air, Chromebook, Android Phones) on the Debian server ( 192.168.1.6 ) via hairpin NAT on the DynDNS address . The other devices show a connection error.
In summary : Only one device at the same time, whether cable or Wifi can internally connect to 192.168.1.6 by DynDNS Adress xxxx.mynetgear.com.
Please can someone look at this.
firewall { all-ping enable broadcast-ping disable group { } ipv6-receive-redirects disable ipv6-src-route disable ip-src-route disable log-martians enable name LAN_IN { default-action accept description "Lan to Internal" rule 1 { action drop description "Block UDP 443" destination { port 443 } log disable protocol udp } } name WAN_IN { default-action drop description "WAN to internal" rule 10 { action accept description "Allow established/related" state { established enable related enable } } rule 20 { action drop description "Drop invalid state" log disable state { invalid enable } } } name WAN_LOCAL { default-action drop description "WAN to router" rule 10 { action accept description "Allow established/related" state { established enable related enable } } rule 20 { action drop description "Drop invalid state" state { invalid enable } } } options { mss-clamp { mss 1412 } } receive-redirects disable send-redirects enable source-validation disable syn-cookies enable } interfaces { ethernet eth0 { description "Internet (PPPoE)" duplex auto pppoe 0 { default-route auto firewall { in { name WAN_IN } local { name WAN_LOCAL } } mtu 1492 name-server auto password xx user-id xx } speed auto } ethernet eth1 { description Local duplex auto speed auto } ethernet eth2 { description Local duplex auto speed auto } ethernet eth3 { description Local duplex auto speed auto } ethernet eth4 { description Local duplex auto speed auto } loopback lo { } switch switch0 { address 192.168.1.1/24 description Local firewall { in { name LAN_IN } } mtu 1500 switch-port { interface eth1 interface eth2 interface eth3 interface eth4 } } } port-forward { auto-firewall enable hairpin-nat enable lan-interface switch0 rule 1 { description debian-server forward-to { address 192.168.1.6 port 443 } original-port 443 protocol tcp } rule 2 { description ssh forward-to { address 192.168.1.6 port xxx } original-port xxx protocol tcp } wan-interface pppoe0 } service { dhcp-server { disabled false hostfile-update disable shared-network-name LAN { authoritative disable subnet 192.168.1.0/24 { default-router 192.168.1.1 dns-server 8.8.8.8 dns-server 8.8.4.4 lease 86400 start 192.168.1.2 { stop 192.168.1.243 } static-mapping Android-Phone { ip-address 192.168.1.29 mac-address xx } static-mapping R7000-Wifi { ip-address 192.168.1.20 mac-address xx } } } } dns { dynamic { interface switch0 { service custom-mynetgear { host-name xxxxxxxxx.mynetgear.com login xxxxxxxx password xxxxx protocol noip server dynupdate.no-ip.com } web dyndns } } forwarding { cache-size 150 listen-on switch0 } } gui { https-port 8443 } nat { rule 5010 { description "masquerade for WAN" outbound-interface pppoe0 type masquerade } } ssh { port 22 protocol-version v2 } ubnt-discover { disable } } system { host-name xxxx login { user xxx { authentication { encrypted-password xxxxxxx/ plaintext-password "" } full-name xxx level admin } } name-server 8.8.8.8 name-server 8.8.4.4 ntp { server 0.ubnt.pool.ntp.org { } server 1.ubnt.pool.ntp.org { } server 2.ubnt.pool.ntp.org { } server 3.ubnt.pool.ntp.org { } } package { repository wheezy { components "main contrib non-free" distribution wheezy password "" url http://http.us.debian.org/debian username "" } repository wheezy-security { components main distribution wheezy/updates password "" url http://security.debian.org username "" } } syslog { global { facility all { level notice } facility protocols { level debug } } } time-zone Europe/Vienna } traffic-control { smart-queue A1 { download { ecn enable flows 1024 fq-quantum 1514 limit 10240 rate 29mbit } upload { ecn enable flows 1024 fq-quantum 1514 limit 10240 rate 5.8mbit } wan-interface pppoe0 } } /* Warning: Do not remove the following line. */ /* === vyatta-config-version: "config-management@1:conntrack@1:cron@1:dhcp-relay@1:dhcp-server@4:firewall@5:ipsec@5:nat@3:qos@1:quagga@2:system@4:ubnt-pptp@1:ubnt-util@1:vrrp@1:webgui@1:webproxy@1:zone-policy@1" === */ /* Release version: v1.8.0.4853089.160219.1607 */