7
7
799632143132016-12-16 11:36:54
Network administration
79963214313, 2016-12-16 11:36:54

Openwrt when connecting usb lte as the main gateway. does not let through the wan from outside. What should be written?

Openwrt 14.07 tp-link 4300
Openwrt router when connecting usb lte as the main gateway. does not let through the wan from outside.
Here is the config


  • config interface 'lan'
    option ifname 'eth0.1'
    option force_link '1'
    option proto 'static'
    option netmask '255.255.255.0'
    option ipaddr '192.168.45.1'
    config interface 'wan'
    option ifname 'eth0.2'
    option _orig_ifname 'eth0.2'
    option _orig_bridge 'false'
    option proto 'static'
    option netmask '255.255.255.0'
    option ipaddr '192.168.40.100'
    option gateway '192.168.40.1'
    option dns '192.168.40.1'
    option metric '50'
    config interface 'usb1'
    option proto 'static'
    option ifname 'usb0'
    option ipaddr '192.168.0.100'
    option netmask '255.255.255.0'
    option gateway '192.168.0.1'
    option dns '192.168.0.1'
    option metric '10'
    config interface 'usb2'
    option proto '3g'
    option device '/dev/ttyUSB0'
    option metric '20'
    config interface 'vpn'
    option proto ' none'
    option ifname 'tun0'
    option metric '30'
    config switch
    option name 'switch0'
    option reset '1'
    option enable_vlan '1'
    config switch_vlan
    option device 'switch0'
    option vlan '1'
    option ports '0t 2'
    option vid ' one'
    config switch_vlan
    option device 'switch0'
    option vlan '2'
    option ports '0t 1'
    option vid '2'
    config interface 'loopback'
    option ifname 'lo'
    option proto 'static'
    option ipaddr '127.0.0.1'
    option netmask '255.0.0.0'
    config globals 'globals'

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
solalex, 2016-12-16
@solalex

Is there a white address?
Yes, and if the connection is hilink (the modem is like a network network), then the modem also has two interfaces, wan and lan.
You can go into the modem itself via lan and tweak the settings, set the DMZ to the address of the router.

7
79963214313, 2016-12-16
@79963214313

white ip wan. and through it I can’t get into the router if the default gateway is lte.
even if we allow to make wan and wan2. two internet providers. The main gateway will be wan, and wan2 has a white ip, then it is not possible to get into the router from outside through wan2

S
Stanislav Somov, 2016-12-16
@DarkDemon

Something is doubtful about white ip, I have not seen such a mobile operator. System->Management specify which interface to display from there, or configure or disable iptables.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question