OpenWrt Forum Archive

Topic: Rejected request from RFC1918 IP to public server address

The content of this topic has been archived on 22 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello, I'm having the error below. I have a 3G modem and trying to connect my device through 3G modem IP address and I get the error below. I need to access the web interface via 3G modem's IP address. 

    Any Help ?


Forbidden

Rejected request from RFC1918 IP to public server address

/etc/config/uhttpd

config uhttpd 'main'
        list listen_https '[::]:443'
        option redirect_https '1'
        option home '/www'
        option rfc1918_filter '1'
        option max_requests '3'
        option max_connections '100'
        option cert '/etc/uhttpd.crt'
        option key '/etc/uhttpd.key'
        option cgi_prefix '/cgi-bin'
        option script_timeout '60'
        option network_timeout '30'
        option http_keepalive '20'
        option tcp_keepalive '1'
        option ubus_prefix '/ubus'

config cert 'px5g'
        option days '730'
        option bits '1024'
        option country 'ZZ'
        option state 'Somewhere'
        option location 'Uknown'
        option commonname 'OpenWrt'
enkavak wrote:

    Any Help ?


Forbidden

Rejected request from RFC1918 IP to public server address

/etc/config/uhttpd

config uhttpd 'main'
        ...
        option rfc1918_filter '1'
        ...

You should remove the rfc1918 protection from your settings if you intentionally want to allow that access.

The discussion might have continued from here.