From efb17aaf7d145b85664879b45cbd82f50d652748 Mon Sep 17 00:00:00 2001 From: Luis Joerg Date: Mon, 19 May 2025 16:21:03 +0200 Subject: [PATCH] 2 --- avl | 52 +++++++++ ble_devices | 0 blesem | 7 ++ buttons | 22 ++++ call_utils | 4 + chilli | 6 + cli | 9 ++ ddns | 17 +++ dhcp | 31 +++++ dmvpn | 0 dropbear | 9 ++ email_to_sms | 3 + etherwake | 28 +++++ events_reporting | 0 firewall | 209 ++++++++++++++++++++++++++++++++++ frr | 11 ++ fstab | 7 ++ gps | 147 ++++++++++++++++++++++++ hostblock | 4 + hwinfo | 19 ++++ iojuggler | 2 + ioman | 15 +++ ip_blockd | 5 + ipsec | 5 + kmod_man | 9 ++ landingpage | 8 ++ mdcollectd | 9 ++ modbus | 10 ++ modbus_data_sender | 2 + modbus_master | 58 ++++++++++ modbusgateway | 5 + mosquitto | 1 + mqtt_pub | 1 + multi_wifi | 3 + mwan3 | 91 +++++++++++++++ network | 80 +++++++++++++ ntpclient | 24 ++++ ntpserver | 4 + openvpn | 3 + operctl | 12 ++ overview | 99 ++++++++++++++++ p910nd | 26 +++++ package_restore | 2 + periodic_reboot | 1 + ping_reboot | 31 +++++ post_get | 14 +++ pptpd | 0 privoxy | 20 ++++ profiles | 11 ++ quota_limit | 5 + rms_mqtt | 31 +++++ rpcd | 61 ++++++++++ rs_console | 0 rs_modbus | 0 rs_modem | 2 + rs_overip | 0 rut_fota | 7 ++ samba | 6 + sim_switch | 9 ++ simcard | 23 ++++ sms_gateway | 31 +++++ sms_post_get | 2 + sms_utils | 273 +++++++++++++++++++++++++++++++++++++++++++++ snmpd | 99 ++++++++++++++++ snmptrap | 4 + socat | 5 + sqm | 0 stunnel | 4 + system | 32 ++++++ telnetd | 6 + uhttpd | 54 +++++++++ ulogd | 25 +++++ upnpd | 28 +++++ user_groups | 0 vrrpd | 0 vuci | 9 ++ widget | 43 +++++++ wifi_scanner | 4 + wireless | 47 ++++++++ xl2tpd | 3 + xl2tpdv3 | 0 81 files changed, 1949 insertions(+) create mode 100644 avl create mode 100644 ble_devices create mode 100644 blesem create mode 100644 buttons create mode 100644 call_utils create mode 100644 chilli create mode 100644 cli create mode 100644 ddns create mode 100644 dhcp create mode 100644 dmvpn create mode 100644 dropbear create mode 100644 email_to_sms create mode 100644 etherwake create mode 100644 events_reporting create mode 100644 firewall create mode 100644 frr create mode 100644 fstab create mode 100644 gps create mode 100644 hostblock create mode 100644 hwinfo create mode 100644 iojuggler create mode 100644 ioman create mode 100644 ip_blockd create mode 100644 ipsec create mode 100644 kmod_man create mode 100644 landingpage create mode 100644 mdcollectd create mode 100644 modbus create mode 100644 modbus_data_sender create mode 100644 modbus_master create mode 100644 modbusgateway create mode 100644 mosquitto create mode 100644 mqtt_pub create mode 100644 multi_wifi create mode 100644 mwan3 create mode 100644 network create mode 100644 ntpclient create mode 100644 ntpserver create mode 100644 openvpn create mode 100644 operctl create mode 100644 overview create mode 100644 p910nd create mode 100644 package_restore create mode 100644 periodic_reboot create mode 100644 ping_reboot create mode 100644 post_get create mode 100644 pptpd create mode 100644 privoxy create mode 100644 profiles create mode 100644 quota_limit create mode 100644 rms_mqtt create mode 100644 rpcd create mode 100644 rs_console create mode 100644 rs_modbus create mode 100644 rs_modem create mode 100644 rs_overip create mode 100644 rut_fota create mode 100644 samba create mode 100644 sim_switch create mode 100644 simcard create mode 100644 sms_gateway create mode 100644 sms_post_get create mode 100644 sms_utils create mode 100644 snmpd create mode 100644 snmptrap create mode 100644 socat create mode 100644 sqm create mode 100644 stunnel create mode 100644 system create mode 100644 telnetd create mode 100644 uhttpd create mode 100644 ulogd create mode 100644 upnpd create mode 100644 user_groups create mode 100644 vrrpd create mode 100644 vuci create mode 100644 widget create mode 100644 wifi_scanner create mode 100644 wireless create mode 100644 xl2tpd create mode 100644 xl2tpdv3 diff --git a/avl b/avl new file mode 100644 index 0000000..ddd5d5a --- /dev/null +++ b/avl @@ -0,0 +1,52 @@ +config section avl + option 'enabled' '0' + option 'hostname' '192.168.0.1' + option 'port' '8501' + option 'proto' 'tcp' + option 'con_cont' '0' + option 'send_retry' '0' + option 'static_navigation' '0' + +config section avl_rule_main + option 'enabled' '1' + option 'priority' 'low' + option 'distance' '50' + option 'collect_period' '5' + option 'angle' '50' + option 'saved_records' '20' + option 'send_period' '60' + +config avl_rule + option 'enabled' '1' + option 'priority' 'low' + option 'name' 'mobile_home and roaming' + option 'distance' '25' + option 'collect_period' '10' + option 'angle' '25' + option 'saved_records' '10' + option 'send_period' '10' + option 'wan_status' 'mobile_home' + option 'din_status' 'high' + option 'io_type' 'gpio' + option 'io_name' 'din1' + +config avl_rule + option 'enabled' '1' + option 'priority' 'high' + option 'name' 'roaming' + option 'distance' '200' + option 'collect_period' '100' + option 'angle' '50' + option 'saved_records' '20' + option 'send_period' '100' + option 'wan_status' 'mobile_roaming' + +config tavl_rule + option enabled '0' + option type 'mobile' + option name 'signal' + +config tavl_rule + option enabled '0' + option type 'gpio' + option name 'din1' diff --git a/ble_devices b/ble_devices new file mode 100644 index 0000000..e69de29 diff --git a/blesem b/blesem new file mode 100644 index 0000000..beec757 --- /dev/null +++ b/blesem @@ -0,0 +1,7 @@ + +config section 'general' + option enabled '0' + +config app 'settings' + option refresh_time '30000' + diff --git a/buttons b/buttons new file mode 100644 index 0000000..72969f9 --- /dev/null +++ b/buttons @@ -0,0 +1,22 @@ + +config button + option min '0' + option max '5' + option handler 'reboot' + option action 'released' + option enabled '1' + +config button + option min '6' + option max '11' + option handler 'default' + option action 'released' + option enabled '1' + +config button + option min '12' + option max '20' + option handler 'firstboot' + option action 'released' + option enabled '1' + diff --git a/call_utils b/call_utils new file mode 100644 index 0000000..fd614bc --- /dev/null +++ b/call_utils @@ -0,0 +1,4 @@ +config call 'call' + option ringing '0' + option action 'reject' + option enabled '1' diff --git a/chilli b/chilli new file mode 100644 index 0000000..c5b324d --- /dev/null +++ b/chilli @@ -0,0 +1,6 @@ +config group + option name 'default' + + + + diff --git a/cli b/cli new file mode 100644 index 0000000..b6a89bb --- /dev/null +++ b/cli @@ -0,0 +1,9 @@ + +config status 'status' + option enable '1' + option port '4200-4220' + option shell_limit '5' + option _cliWanAccess '0' + +config cli + diff --git a/ddns b/ddns new file mode 100644 index 0000000..16716c3 --- /dev/null +++ b/ddns @@ -0,0 +1,17 @@ + +config ddns 'global' + option ddns_dateformat '%F %R' + option ddns_loglines '250' + option upd_privateip '1' + option use_curl '1' + +config service 'myddns' + option lookup_host 'yourhost.example.com' + option domain 'yourhost.example.com' + option username 'your_username' + option password 'your_password' + option interface 'wan' + option ip_source 'network' + option ip_network 'wan' + option service_name 'dyn.com' + diff --git a/dhcp b/dhcp new file mode 100644 index 0000000..387dff8 --- /dev/null +++ b/dhcp @@ -0,0 +1,31 @@ + +config dnsmasq + option domainneeded '1' + option boguspriv '1' + option filterwin2k '0' + option localise_queries '1' + option rebind_protection '1' + option rebind_localhost '1' + option local '/lan/' + option domain 'lan' + option expandhosts '1' + option nonegcache '0' + option authoritative '1' + option readethers '1' + option leasefile '/tmp/dhcp.leases' + option nonwildcard '1' + option ednspacket_max '1232' + option dhcpscript '/usr/sbin/dhcpinfo.sh' + +config dhcp 'lan' + option interface 'lan' + option start '100' + option limit '150' + option leasetime '12h' + option relay_enabled '0' + option force '0' + +config dhcp 'wan' + option interface 'wan' + option ignore '1' + diff --git a/dmvpn b/dmvpn new file mode 100644 index 0000000..e69de29 diff --git a/dropbear b/dropbear new file mode 100644 index 0000000..0b22d23 --- /dev/null +++ b/dropbear @@ -0,0 +1,9 @@ + +config dropbear + option PasswordAuth 'on' + option RootPasswordAuth 'on' + option Port '22' + option enable '1' + option enable_key_ssh '0' + option _sshWanAccess '1' + diff --git a/email_to_sms b/email_to_sms new file mode 100644 index 0000000..9ec4e63 --- /dev/null +++ b/email_to_sms @@ -0,0 +1,3 @@ +config pop3 'pop3' + option enabled '0' + option limit '5' diff --git a/etherwake b/etherwake new file mode 100644 index 0000000..f218f08 --- /dev/null +++ b/etherwake @@ -0,0 +1,28 @@ +config 'etherwake' 'setup' + # possible program paths + option 'pathes' '/usr/bin/etherwake /usr/bin/ether-wake' + # use sudo, defaults to off + option 'sudo' 'off' + # interface, defaults to 'eth0' + # -i + option 'interface' 'br-lan' + # send wake-up packet to the broadcast address, defaults to off + # -b + option 'broadcast' 'off' + +config 'target' + # name for the target + option 'name' 'example' + # mac address to wake up + option 'mac' '11:22:33:44:55:66' + # password in hex without any delimiters + option 'password' 'AABBCCDDEEFF' + # wake up on system start, defaults to off + option 'wakeonboot' 'off' + +# To add a new target use: +# uci add etherwake target +# uci set etherwake.@target[-1].name=example +# uci set etherwake.@target[-1].mac=11:22:33:44:55:66 +# uci set etherwake.@target[-1].password=AABBCCDDEEFF +# uci set etherwake.@target[-1].wakeonboot=off diff --git a/events_reporting b/events_reporting new file mode 100644 index 0000000..e69de29 diff --git a/firewall b/firewall new file mode 100644 index 0000000..1c5a457 --- /dev/null +++ b/firewall @@ -0,0 +1,209 @@ + +config defaults '1' + option syn_flood '1' + option input 'REJECT' + option output 'ACCEPT' + option forward 'REJECT' + +config zone '2' + option name 'lan' + option input 'ACCEPT' + option output 'ACCEPT' + option forward 'ACCEPT' + option network 'lan' + +config zone '3' + option name 'wan' + option input 'REJECT' + option output 'ACCEPT' + option forward 'REJECT' + option masq '1' + option mtu_fix '1' + option network 'wan wan6 mob1s1a1 mob2s1a1' + +config forwarding '4' + option src 'lan' + option dest 'wan' + +config rule '5' + option name 'Allow-DHCP-Renew' + option src 'wan' + option proto 'udp' + option dest_port '68' + option target 'ACCEPT' + option family 'ipv4' + option priority '1' + +config rule '6' + option name 'Allow-Ping' + option src 'wan' + option proto 'icmp' + option icmp_type 'echo-request' + option family 'ipv4' + option target 'ACCEPT' + option priority '2' + +config rule '7' + option name 'Allow-IGMP' + option src 'wan' + option proto 'igmp' + option family 'ipv4' + option target 'ACCEPT' + option priority '3' + +config rule '8' + option name 'Allow-DHCPv6' + option src 'wan' + option proto 'udp' + option src_ip 'fc00::/6' + option dest_ip 'fc00::/6' + option dest_port '546' + option family 'ipv6' + option target 'ACCEPT' + option priority '4' + +config rule '9' + option name 'Allow-MLD' + option src 'wan' + option proto 'icmp' + option src_ip 'fe80::/10' + list icmp_type '130/0' + list icmp_type '131/0' + list icmp_type '132/0' + list icmp_type '143/0' + option family 'ipv6' + option target 'ACCEPT' + option priority '5' + +config rule '10' + option name 'Allow-ICMPv6-Input' + option src 'wan' + option proto 'icmp' + list icmp_type 'echo-request' + list icmp_type 'echo-reply' + list icmp_type 'destination-unreachable' + list icmp_type 'packet-too-big' + list icmp_type 'time-exceeded' + list icmp_type 'bad-header' + list icmp_type 'unknown-header-type' + list icmp_type 'router-solicitation' + list icmp_type 'neighbour-solicitation' + list icmp_type 'router-advertisement' + list icmp_type 'neighbour-advertisement' + option limit '1000/sec' + option family 'ipv6' + option target 'ACCEPT' + option priority '6' + +config rule '11' + option name 'Allow-ICMPv6-Forward' + option src 'wan' + option dest '*' + option proto 'icmp' + list icmp_type 'echo-request' + list icmp_type 'echo-reply' + list icmp_type 'destination-unreachable' + list icmp_type 'packet-too-big' + list icmp_type 'time-exceeded' + list icmp_type 'bad-header' + list icmp_type 'unknown-header-type' + option limit '1000/sec' + option family 'ipv6' + option target 'ACCEPT' + option priority '7' + +config rule '12' + option name 'Allow-IPSec-ESP' + option src 'wan' + option dest 'lan' + option proto 'esp' + option target 'ACCEPT' + option priority '8' + +config rule '13' + option name 'Allow-ISAKMP' + option src 'wan' + option dest 'lan' + option dest_port '500' + option proto 'udp' + option target 'ACCEPT' + option priority '9' + +config rule '14' + option name 'Support-UDP-Traceroute' + option src 'wan' + option dest_port '33434:33689' + option proto 'udp' + option family 'ipv4' + option target 'REJECT' + option enabled 'false' + option priority '10' + +config include '15' + option path '/etc/firewall.user' + +config rule '16' + option dest_port '22' + option proto 'tcp' + option name 'Enable_SSH_WAN' + option target 'ACCEPT' + option src 'wan' + option priority '11' + +config rule '17' + option dest_port '80' + option proto 'tcp' + option name 'Enable_HTTP_WAN' + option target 'ACCEPT' + option src 'wan' + option priority '12' + +config rule '18' + option dest_port '443' + option proto 'tcp' + option name 'Enable_HTTPS_WAN' + option target 'ACCEPT' + option src 'wan' + option priority '13' + +config rule '19' + option dest_port '4200-4220' + option proto 'tcp' + option name 'Enable_CLI_WAN' + option target 'ACCEPT' + option src 'wan' + option enabled '0' + option priority '14' + +config include '20' + option path '/etc/add-rs-rule.sh' + option reload '1' + +config include 'pscan' + option port_scan '0' + option type 'script' + option reload '1' + option path '/usr/bin/port-scan-prevention' + +config rule '21' + option dest_port '23' + option proto 'tcp udp' + option name 'Enable_TELNET_WAN' + option target 'ACCEPT' + option src 'wan' + option enabled '0' + +config rule '22' + option dest_port '502' + option proto 'tcp' + option name 'Enable_MODBUSD_WAN' + option target 'ACCEPT' + option src 'wan' + option enabled '1' + +config include 'miniupnpd' + option type 'script' + option path '/usr/share/miniupnpd/firewall.include' + option family 'any' + option reload '1' + diff --git a/frr b/frr new file mode 100644 index 0000000..2c51512 --- /dev/null +++ b/frr @@ -0,0 +1,11 @@ +config bgp_general 'bgp' + +config bgp_instance 'main_instance' + +config rip_general 'rip' + +config ospf 'ospf' + +config eigrp_general 'eigrp' + +config nhrp_general 'nhrp' \ No newline at end of file diff --git a/fstab b/fstab new file mode 100644 index 0000000..6f7648e --- /dev/null +++ b/fstab @@ -0,0 +1,7 @@ +config global + option anon_swap '0' + option anon_mount '1' + option auto_swap '1' + option auto_mount '1' + option delay_root '5' + option check_fs '0' diff --git a/gps b/gps new file mode 100644 index 0000000..c8cab2f --- /dev/null +++ b/gps @@ -0,0 +1,147 @@ + +config section 'gpsd' + option enabled '1' + option galileo_sup '1' + option beidou_sup '3' + option glonass_sup '7' + +config section 'nmea_forwarding' + option enabled '0' + option port '8500' + option proto 'tcp' + option con_contain '0' + +config section 'nmea_forwarding_cache' + option type 'ram' + option sentences_max '5000' + +config section 'nmea_collecting' + option enabled '0' + +config nmea_rule 'GPGSV' + option forwarding_enabled '0' + option forwarding_interval '5' + option collecting_enabled '0' + option collecting_interval '5' + +config nmea_rule 'GPGGA' + option forwarding_enabled '0' + option forwarding_interval '5' + option collecting_enabled '0' + option collecting_interval '5' + +config nmea_rule 'GPVTG' + option forwarding_enabled '0' + option forwarding_interval '5' + option collecting_enabled '0' + option collecting_interval '5' + +config nmea_rule 'GPRMC' + option forwarding_enabled '0' + option forwarding_interval '5' + option collecting_enabled '0' + option collecting_interval '5' + +config nmea_rule 'GPGSA' + option forwarding_enabled '0' + option forwarding_interval '5' + option collecting_enabled '0' + option collecting_interval '5' + +config nmea_rule 'GLGSV' + option forwarding_enabled '0' + option forwarding_interval '5' + option collecting_enabled '0' + option collecting_interval '5' + +config nmea_rule 'GNGSA' + option forwarding_enabled '0' + option forwarding_interval '5' + option collecting_enabled '0' + option collecting_interval '5' + +config nmea_rule 'GNGNS' + option forwarding_enabled '0' + option forwarding_interval '5' + option collecting_enabled '0' + option collecting_interval '5' + +config nmea_rule 'GAGSV' + option forwarding_enabled '0' + option forwarding_interval '5' + option collecting_enabled '0' + option collecting_interval '5' + +config nmea_rule 'PQGSV' + option forwarding_enabled '0' + option forwarding_interval '5' + option collecting_enabled '0' + option collecting_interval '5' + +config nmea_rule 'PQGSA' + option forwarding_enabled '0' + option forwarding_interval '5' + option collecting_enabled '0' + option collecting_interval '5' + +config section 'https' + option enabled '0' + +config https_tavl_rule + option enabled '0' + option type 'mobile' + option name 'signal' + +config https_tavl_rule + option enabled '0' + option type 'gpio' + option name 'din1' + +config nmea_rule 'GARMC' + option forwarding_enabled '0' + option forwarding_interval '5' + option collecting_enabled '0' + option collecting_interval '5' + +config nmea_rule 'GAGGA' + option forwarding_enabled '0' + option forwarding_interval '5' + option collecting_enabled '0' + option collecting_interval '5' + +config nmea_rule 'GAGSA' + option forwarding_enabled '0' + option forwarding_interval '5' + option collecting_enabled '0' + option collecting_interval '5' + +config nmea_rule 'GAVTG' + option forwarding_enabled '0' + option forwarding_interval '5' + option collecting_enabled '0' + option collecting_interval '5' + +config nmea_rule 'GBGSV' + option forwarding_enabled '0' + option forwarding_interval '5' + option collecting_enabled '0' + option collecting_interval '5' + +config nmea_rule 'GQGSV' + option forwarding_enabled '0' + option forwarding_interval '5' + option collecting_enabled '0' + option collecting_interval '5' + +config nmea_rule 'GBGSA' + option forwarding_enabled '0' + option forwarding_interval '5' + option collecting_enabled '0' + option collecting_interval '5' + +config nmea_rule 'GQGSA' + option forwarding_enabled '0' + option forwarding_interval '5' + option collecting_enabled '0' + option collecting_interval '5' + diff --git a/hostblock b/hostblock new file mode 100644 index 0000000..7c39de1 --- /dev/null +++ b/hostblock @@ -0,0 +1,4 @@ +config hostblock 'config' + option enabled '0' + option icmp_host '8.8.8.8' + option mode 'whitelist' diff --git a/hwinfo b/hwinfo new file mode 100644 index 0000000..723c86e --- /dev/null +++ b/hwinfo @@ -0,0 +1,19 @@ + +config hwinfo 'hwinfo' + option dual_sim '0' + option usb '1' + option bluetooth '1' + option wifi '1' + option dual_band_ssid '1' + option wps '0' + option mobile '1' + option gps '1' + option ethernet '1' + option sfp_port '0' + option ios '1' + option at_sim '0' + option sfp_switch '0' + option rs232 '0' + option rs485 '0' + option console '0' + diff --git a/iojuggler b/iojuggler new file mode 100644 index 0000000..4cd1452 --- /dev/null +++ b/iojuggler @@ -0,0 +1,2 @@ +config general + option enabled '0' diff --git a/ioman b/ioman new file mode 100644 index 0000000..4c48892 --- /dev/null +++ b/ioman @@ -0,0 +1,15 @@ + +config scheduler_general 'scheduler_general' + option enabled '0' + +config gpio 'dout1' + option direction 'out' + option value '0' + option bi_dir '0' + +config gpio 'din1' + option direction 'in' + option value '0' + option bi_dir '0' + option invert_input '0' + diff --git a/ip_blockd b/ip_blockd new file mode 100644 index 0000000..3f419a9 --- /dev/null +++ b/ip_blockd @@ -0,0 +1,5 @@ + +config globals + option max_attempt_count '10' + option enabled '1' + diff --git a/ipsec b/ipsec new file mode 100644 index 0000000..aed5972 --- /dev/null +++ b/ipsec @@ -0,0 +1,5 @@ + +config ipsec + option rtinstall_enabled '1' + option make_before_break '0' + diff --git a/kmod_man b/kmod_man new file mode 100644 index 0000000..ac5005f --- /dev/null +++ b/kmod_man @@ -0,0 +1,9 @@ +config module + option name 'H323' + option path '/etc/modules.d/nf-nathelper-h323' + option enabled '0' + +config module + option name 'SIP' + option path '/etc/modules.d/nf-nathelper-sip' + option enabled '0' diff --git a/landingpage b/landingpage new file mode 100644 index 0000000..3fc4a29 --- /dev/null +++ b/landingpage @@ -0,0 +1,8 @@ +config landing "general" + option auth_proto 'pap' + option resourcebase '/resources' + option theme 'default' + +config theme 'default' + option name 'Default theme' + diff --git a/mdcollectd b/mdcollectd new file mode 100644 index 0000000..e9d64c3 --- /dev/null +++ b/mdcollectd @@ -0,0 +1,9 @@ + +config mdcollectd 'config' + option enabled '1' + option traffic '0' + option datalimit '0' + option sim_switch '0' + option interval '10' + list ignore 'lo' + diff --git a/modbus b/modbus new file mode 100644 index 0000000..52d2cab --- /dev/null +++ b/modbus @@ -0,0 +1,10 @@ + +config modbus 'modbus' + option port '502' + option clientregs '0' + option md_data_type '0' + option enabled '1' + option keepconn '1' + option timeout '60' + option device_id '0' + diff --git a/modbus_data_sender b/modbus_data_sender new file mode 100644 index 0000000..47df72a --- /dev/null +++ b/modbus_data_sender @@ -0,0 +1,2 @@ +config settings 'settings' + option data_sender_version '1' diff --git a/modbus_master b/modbus_master new file mode 100644 index 0000000..bc2958f --- /dev/null +++ b/modbus_master @@ -0,0 +1,58 @@ + +config tcp_slave '1' + option port '502' + option slave_id '1' + option dev_ipaddr '127.0.0.1' + option timeout '5' + option period '1' + option enabled '1' + option delay '0' + option frequency 'period' + option reconnect '1' + option name 'wasd' + +config request_1 '2' + option name 'timestamp' + option enabled '1' + option reg_count '2' + option no_brackets '0' + option function '3' + option data_type '32bit_uint1234' + option first_reg '365' + +config request_1 '3' + option name 'gps_lat' + option enabled '1' + option reg_count '2' + option no_brackets '0' + option function '3' + option data_type '32bit_float1234' + option first_reg '144' + +config request_1 '4' + option name 'gps_lon' + option enabled '1' + option reg_count '2' + option no_brackets '0' + option function '3' + option data_type '32bit_float1234' + option first_reg '146' + +config request_1 '5' + option name 'rssi' + option enabled '1' + option reg_count '2' + option no_brackets '0' + option function '3' + option data_type '32bit_int1234' + option first_reg '4' + +config request_1 '6' + option name 'nettype' + option enabled '1' + option reg_count '16' + option no_brackets '0' + option function '3' + option data_type 'ascii' + option first_reg '120' + diff --git a/modbusgateway b/modbusgateway new file mode 100644 index 0000000..b991934 --- /dev/null +++ b/modbusgateway @@ -0,0 +1,5 @@ +config gateway 'gateway' + option enabled 0 + option port '1883' + option request 'request' + option response 'response' diff --git a/mosquitto b/mosquitto new file mode 100644 index 0000000..2477464 --- /dev/null +++ b/mosquitto @@ -0,0 +1 @@ +config mqtt 'mqtt' diff --git a/mqtt_pub b/mqtt_pub new file mode 100644 index 0000000..13ca466 --- /dev/null +++ b/mqtt_pub @@ -0,0 +1 @@ +config mqtt_pub 'mqtt_pub' diff --git a/multi_wifi b/multi_wifi new file mode 100644 index 0000000..5b9a31c --- /dev/null +++ b/multi_wifi @@ -0,0 +1,3 @@ +config multi_wifi 'general' + option enabled '0' + option scan_time '60' diff --git a/mwan3 b/mwan3 new file mode 100644 index 0000000..866a0b6 --- /dev/null +++ b/mwan3 @@ -0,0 +1,91 @@ + +config globals 'globals' + option mmx_mask '0x3F00' + option rtmon_interval '5' + +config interface 'wan' + option enabled '0' + option interval '3' + option family 'ipv4' + +config condition + option interface 'wan' + option track_method 'ping' + option reliability '1' + option count '1' + option timeout '2' + option down '3' + option up '3' + list track_ip '1.1.1.1' + list track_ip '8.8.8.8' + +config member 'wan_member_mwan' + option interface 'wan' + option metric '1' + +config member 'wan_member_balance' + option interface 'wan' + option weight '1' + +config policy 'mwan_default' + list use_member 'wan_member_mwan' + list use_member 'mob1s1a1_member_mwan' + list use_member 'mob2s1a1_member_mwan' + +config policy 'balance_default' + list use_member 'wan_member_balance' + list use_member 'mob1s1a1_member_balance' + list use_member 'mob2s1a1_member_balance' + +config rule 'default_rule' + option dest_ip '0.0.0.0/0' + option use_policy 'mwan_default' + +config interface 'mob1s1a1' + option interval '3' + option enabled '0' + option family 'ipv4' + +config condition + option interface 'mob1s1a1' + option track_method 'ping' + option reliability '1' + option count '1' + option timeout '2' + option down '3' + option up '3' + list track_ip '1.1.1.1' + list track_ip '8.8.8.8' + +config member 'mob1s1a1_member_mwan' + option interface 'mob1s1a1' + option metric '2' + +config member 'mob1s1a1_member_balance' + option interface 'mob1s1a1' + option weight '1' + +config interface 'mob2s1a1' + option interval '3' + option enabled '0' + option family 'ipv4' + +config condition + option interface 'mob2s1a1' + option track_method 'ping' + option reliability '1' + option count '1' + option timeout '2' + option down '3' + option up '3' + list track_ip '1.1.1.1' + list track_ip '8.8.8.8' + +config member 'mob2s1a1_member_mwan' + option interface 'mob2s1a1' + option metric '3' + +config member 'mob2s1a1_member_balance' + option interface 'mob2s1a1' + option weight '1' + diff --git a/network b/network new file mode 100644 index 0000000..47a6a12 --- /dev/null +++ b/network @@ -0,0 +1,80 @@ + +config interface 'loopback' + option proto 'static' + option ipaddr '127.0.0.1' + option netmask '255.0.0.0' + option device 'lo' + +config globals 'globals' + option ula_prefix 'fd02:bb5a:a885::/48' + +config interface 'lan' + option proto 'static' + option netmask '255.255.255.0' + option ip6assign '60' + option device 'br-lan' + option metric '1' + option delegate '1' + option force_link '1' + option ipaddr '192.168.0.45' + option stp '0' + +config interface 'wan' + option proto 'dhcp' + option metric '1' + option device 'eth1' + +config interface 'wan6' + option proto 'dhcpv6' + option metric '1' + option device 'eth1' + +config switch + option name 'switch0' + option reset '1' + option enable_vlan '1' + +config switch_vlan + option device 'switch0' + option vlan '1' + option ports '1 2 3 4 0' + +config switch_vlan + option device 'switch0' + option vlan '2' + option ports '5 0' + +config interface 'mob1s1a1' + option proto 'wwan' + option modem '3-1' + option metric '2' + option sim '1' + option pdp '1' + option dhcpv6 '0' + option pdptype 'ip' + option force_apn '-1' + option auto_apn '0' + option apn 'wsim.vpn' + option auth 'none' + +config interface 'mob2s1a1' + option proto 'wwan' + option modem '1-1.2' + option metric '3' + option sim '1' + option pdp '1' + option dhcpv6 '0' + option pdptype 'ip' + option force_apn '-1' + option auto_apn '0' + option method 'nat' + option apn 'wsim.vpn' + option delegate '1' + option force_link '0' + option auth 'none' + +config device 'br_lan' + option name 'br-lan' + option type 'bridge' + list ports 'eth0' + diff --git a/ntpclient b/ntpclient new file mode 100644 index 0000000..889c4e2 --- /dev/null +++ b/ntpclient @@ -0,0 +1,24 @@ +config ntpserver + option hostname '0.openwrt.pool.ntp.org' + option port '123' + +config ntpserver + option hostname '1.openwrt.pool.ntp.org' + option port '123' + +config ntpserver + option hostname '2.openwrt.pool.ntp.org' + option port '123' + +config ntpserver + option hostname '3.openwrt.pool.ntp.org' + option port '123' + +config ntpdrift + option freq '0' + +config ntpclient + option enabled 1 + option interval 86400 + #option count 10 + #option interface wan diff --git a/ntpserver b/ntpserver new file mode 100644 index 0000000..72d9f6c --- /dev/null +++ b/ntpserver @@ -0,0 +1,4 @@ + +config ntpserver 'general' + option enabled '0' + diff --git a/openvpn b/openvpn new file mode 100644 index 0000000..6023736 --- /dev/null +++ b/openvpn @@ -0,0 +1,3 @@ + +config webui 'webui' + option _auth 'tls' diff --git a/operctl b/operctl new file mode 100644 index 0000000..0303c9e --- /dev/null +++ b/operctl @@ -0,0 +1,12 @@ +config dns_list 'dns_list' + option enabled '1' + list dns '8.8.8.8' + list dns '1.1.1.1' + list dns '208.67.222.222' + list dns '9.9.9.9' + list dns '64.6.64.6' + list dns6 '2001:4860:4860::8888' + list dns6 '2606:4700:4700::1111' + list dns6 '2620:119:35::35' + list dns6 '2620:fe::fe' + list dns6 '2620:74:1b::1:1' diff --git a/overview b/overview new file mode 100644 index 0000000..3f6256a --- /dev/null +++ b/overview @@ -0,0 +1,99 @@ + +config overview + option id 'system' + option enabled '1' + option position '1' + +config overview + option id 'mobile' + option enabled '1' + option section_name '3-1' + option position '3' + +config overview + option id 'wireless' + option enabled '1' + option section_name 'radio1.network1' + option position '5' + +config overview + option id 'interface' + option enabled '1' + option section_name 'lan' + option position '6' + +config overview + option id 'interface' + option enabled '1' + option section_name 'wan' + option position '7' + +config overview + option id 'interface' + option enabled '0' + option section_name 'wan6' + option position '8' + +config overview + option id 'mobile' + option enabled '1' + option section_name '1-1.2' + option position '9' + +config overview + option id 'interface' + option enabled '1' + option section_name 'mob1s1a1' + option position '10' + +config overview + option id 'mobile_data_limit' + option enabled '0' + option section_name 'mob1s1a1' + option position '11' + +config overview + option id 'mobile_data_limit' + option enabled '0' + option section_name 'mob2s1a1' + option position '12' + +config overview + option id 'sms_limit_sim1' + option enabled '0' + option section_name 'cfg02aa0e' + option position '14' + +config overview + option id 'system_events' + option enabled '1' + option position '16' + +config overview + option id 'network_events' + option enabled '1' + option position '17' + +config overview + option id 'monitoring' + option enabled '1' + option position '18' + +config overview + option id 'interface' + option enabled '1' + option section_name 'mob2s1a1' + option position '20' + +config overview + option id 'wireless' + option position '21' + option enabled '1' + option section_name 'radio0.network1' + +config overview + option id 'sms_limit_sim1' + option position '22' + option enabled '1' + option section_name 'cfg01aa0e' + diff --git a/p910nd b/p910nd new file mode 100644 index 0000000..2980d43 --- /dev/null +++ b/p910nd @@ -0,0 +1,26 @@ +config p910nd + option device /dev/usb/lp0 + # Actual TCP port is 9100 plus this value + # Valid values are 0,1,2 + option port 0 + option bidirectional 1 + option enabled 0 + # Override running as user p910nd, group lp + option runas_root 0 + + # mDNS support - see Bonjour Printing Specification for details concerning the values + # Be aware that you can only advertise one printer on this host via mDNS + # Set to 1 to enable + option mdns 0 + # Human-readable printer make and model + option mdns_ty 'My Printer Manufacturer/Model' + # Human-readable location + option mdns_note 'Basement' + # Post-Script product string, including parenthesis + option mdns_product '' + # IEEE-1284 Device ID MANUFACTURER/MFG string + option mdns_mfg '' + # IEEE-1284 Device ID MODEL/MDL string + option mdns_mdl '' + # IEEE-1284 Device ID COMMAND SET/CMD string + option mdns_cmd '' \ No newline at end of file diff --git a/package_restore b/package_restore new file mode 100644 index 0000000..1f1b289 --- /dev/null +++ b/package_restore @@ -0,0 +1,2 @@ +config package_restore 'package_restore' + option enabled '1' diff --git a/periodic_reboot b/periodic_reboot new file mode 100644 index 0000000..a7dfb9b --- /dev/null +++ b/periodic_reboot @@ -0,0 +1 @@ +config periodic_reboot 'periodic_reboot' \ No newline at end of file diff --git a/ping_reboot b/ping_reboot new file mode 100644 index 0000000..3271bbd --- /dev/null +++ b/ping_reboot @@ -0,0 +1,31 @@ + +config ping_reboot + option action '1' + option time '5' + option fail_counter '0' + option packet_size '56' + option stop_action '0' + option type 'ping' + option ip_type2 'ipv4' + option ip_type1 'ipv4' + option enable '1' + option time_out '7' + option host2 '8.8.8.8' + option retry '11' + option host1 '8.8.8.8' + option interface '2' + option modem '3-1' + option current_try '4' + +config ping_reboot + option type 'wget' + option action '1' + option enable '1' + option host 'http://www.google.com' + option time '120' + option time_out '20' + option stop_action '0' + option retry '3' + option modem '3-1' + option current_try '1' + diff --git a/post_get b/post_get new file mode 100644 index 0000000..de5b69b --- /dev/null +++ b/post_get @@ -0,0 +1,14 @@ +config post_get 'io' + option enabled '0' + list allow "io_state" + list allow "io_type" + list allow "io_value" + +config post_get 'mobile' + option enabled '0' + list allow 'mobile_data' + list allow 'sms_delete' + list allow 'sms_list' + list allow 'sms_read' + list allow 'sms_send' + list allow 'sms_total' diff --git a/pptpd b/pptpd new file mode 100644 index 0000000..e69de29 diff --git a/privoxy b/privoxy new file mode 100644 index 0000000..8df0879 --- /dev/null +++ b/privoxy @@ -0,0 +1,20 @@ +config privoxy 'privoxy' + option enabled '0' + option confdir /etc/privoxy + option logdir /var/log + option filterfile default.filter + option logfile privoxy + option actionsfile /var/run/user.action + option toggle 1 + option enable_remote_toggle 1 + option enable_remote_http_toggle 0 + option enable_edit_actions 1 + option buffer_limit 4096 + option forwarded_connect_retries 0 + option accept_intercepted_requests 1 + option allow_cgi_request_crunching 0 + option split_large_forms 0 + option keep_alive_timeout 300 + option socket_timeout 300 + option listen_address :8118 + option permit_access lan diff --git a/profiles b/profiles new file mode 100644 index 0000000..fe8e955 --- /dev/null +++ b/profiles @@ -0,0 +1,11 @@ + +config general 'general' + option path '/etc/profiles/' + option profile 'default' + +config profile 'default' + option archive 'default.tar.gz' + option md5file 'default.md5' + option id '0' + option updated '1689675671' + diff --git a/quota_limit b/quota_limit new file mode 100644 index 0000000..7641397 --- /dev/null +++ b/quota_limit @@ -0,0 +1,5 @@ + +config interface 'mob1s1a1' + +config interface 'mob2s1a1' + diff --git a/rms_mqtt b/rms_mqtt new file mode 100644 index 0000000..79c6da5 --- /dev/null +++ b/rms_mqtt @@ -0,0 +1,31 @@ + +config rms_mqtt 'rms_mqtt' + option rms_ip 'rms.teltonika.lt' + option rms_port '15010' + option ca_file '/etc/rms_mqtt/ca.crt' + option cert_file '/etc/rms_mqtt/client.crt' + option key_file '/etc/rms_mqtt/client.key' + option rms_keepalive '60' + +config rms_connect_mqtt 'rms_connect_mqtt' + option retry '60' + option port '15009' + option remote 'rms.teltonika-networks.com' + option debug '1' + option enable '2' + +config rms_connect_timer 'rms_connect_timer' + option level '0' + option next_level '1689674488' + +config rms_connect_timer 'default' + option repeat_time '21600' + +config rms_connect_timer_level + option repeat_time '120' + option whole_time '3600' + +config rms_connect_timer_level + option repeat_time '300' + option whole_time '1209600' + diff --git a/rpcd b/rpcd new file mode 100644 index 0000000..b1bcb6f --- /dev/null +++ b/rpcd @@ -0,0 +1,61 @@ + +config rpcd + option socket '/var/run/ubus/ubus.sock' + option timeout '200' + +config login + option username 'admin' + option password '$p$admin' + option group 'root' + option _dummy_time '1688370835' + list read 'superuser' + list read '*' + list write 'superuser' + list write '*' + +config superuser + option username 'admin' + list read '*' + list write '*' + option password '$p$admin' + +config group 'root' + option target_write 'allow' + option target_read 'allow' + list write '*' + list read '*' + +config group 'admin' + option target_read 'deny' + list read 'system/multiusers/users_configuration' + list read 'system/backup' + list read 'system/flashops' + list read 'system/cli' + list read 'system/wizard' + list read 'system/uscripts' + list read 'system/profiles' + option target_write 'deny' + list write 'system/flashops' + list write 'system/uscripts' + list write 'system/wizard' + list write 'system/multiusers/users_configuration' + list write 'system/profiles' + list write 'system/admin/access_control/general' + list write 'system/backup' + +config group 'user' + option target_write 'allow' + option target_read 'deny' + list write 'system/multiusers/change_password' + list read 'system/multiusers/users_configuration' + list read 'system/flashops' + list read 'system/backup' + list read 'system/admin/access_control' + list read 'system/cli' + list read 'system/uscripts' + list read 'services/packages' + list read 'network' + list read 'system/wizard' + list read 'services/hotspot/general/userscripts' + list read 'services/mobile_utilities/sms_messages/send' + diff --git a/rs_console b/rs_console new file mode 100644 index 0000000..e69de29 diff --git a/rs_modbus b/rs_modbus new file mode 100644 index 0000000..e69de29 diff --git a/rs_modem b/rs_modem new file mode 100644 index 0000000..1079213 --- /dev/null +++ b/rs_modem @@ -0,0 +1,2 @@ + +config blocked_modems 'blocked_modems' diff --git a/rs_overip b/rs_overip new file mode 100644 index 0000000..e69de29 diff --git a/rut_fota b/rut_fota new file mode 100644 index 0000000..c9c3d3b --- /dev/null +++ b/rut_fota @@ -0,0 +1,7 @@ + +config rut_fota 'config' + option enabled '1' + option communication_host 'rut.teltonika.lt' + option communication_port '5000' + option fw_info 'N/A' + diff --git a/samba b/samba new file mode 100644 index 0000000..81d00ec --- /dev/null +++ b/samba @@ -0,0 +1,6 @@ +config samba + option 'name' 'Router_share' + option 'workgroup' 'WORKGROUP' + option 'description' 'Router share' + option 'homes' '1' + diff --git a/sim_switch b/sim_switch new file mode 100644 index 0000000..40b96c4 --- /dev/null +++ b/sim_switch @@ -0,0 +1,9 @@ + +config sim + option modem '3-1' + option position '1' + +config sim + option modem '1-1.2' + option position '1' + diff --git a/simcard b/simcard new file mode 100644 index 0000000..f04f9c1 --- /dev/null +++ b/simcard @@ -0,0 +1,23 @@ + +config sim + option modem '3-1' + option position '1' + option primary '1' + option volte 'auto' + option iccid '8935201641414312139F' + +config sim + option modem '1-1.2' + option position '1' + option primary '1' + option volte 'auto' + +config simman + option free '5' + option info_modem_id '3-1' + option msg_storage 'sm' + +config simman + option free '5' + option info_modem_id '1-1.2' + diff --git a/sms_gateway b/sms_gateway new file mode 100644 index 0000000..eb2d545 --- /dev/null +++ b/sms_gateway @@ -0,0 +1,31 @@ + +config reply + option enabled '0' + option mode 'everyone' + option delete_sms '0' + +config fwd_to_http + option enabled '0' + option mode 'everyone' + option every_sms '0' + option sender_num '0' + option delete_sms '0' + +config fwd_to_sms + option enabled '0' + option mode 'everyone' + option every_sms '0' + option sender_num '0' + option delete_sms '0' + +config fwd_to_smtp + option enabled '0' + option mode 'everyone' + option every_sms '0' + option sender_num '0' + option delete_sms '0' + +config simman + option info_modem_id '3-1' + option free '5' + diff --git a/sms_post_get b/sms_post_get new file mode 100644 index 0000000..69f8516 --- /dev/null +++ b/sms_post_get @@ -0,0 +1,2 @@ +config post_get 'post_get' + option enabled '0' diff --git a/sms_utils b/sms_utils new file mode 100644 index 0000000..0bcc7d3 --- /dev/null +++ b/sms_utils @@ -0,0 +1,273 @@ + +config rule + option action 'reboot' + option enabled '1' + option smstext 'reboot' + option authorization 'password' + option allowed_phone 'all' + option status_sms '1' + option message 'Router name - %rn; WAN IP - %wi; Data Connection state - %cs; Connection type - %ct; Signal Strength - %ss; New FW available - %fs;' + option to_other_phone '0' + +config rule + option action 'send_status' + option enabled '1' + option smstext 'status' + option authorization 'password' + option allowed_phone 'all' + option message 'Router name - %rn; WAN IP - %wi; Data Connection state - %cs; Connection type - %ct; Signal Strength - %ss; New FW available - %fs;' + option to_other_phone '0' + +config rule + option action 'iostatus' + option smstext 'iostatus' + option authorization 'password' + option allowed_phone 'all' + option to_other_phone '0' + option message 'Input (3) - %g0; Output (4) - %g1;' + option enabled '0' + +config rule + option action 'io_set' + option smstext 'ioset' + option authorization 'password' + option allowed_phone 'all' + option io 'dout1' + option value 'on' + option enabled '0' + +config rule + option action 'wifi' + option value 'on' + option smstext 'wifion' + option authorization 'password' + option allowed_phone 'all' + option write_wifi '1' + option to_other_phone '0' + option enabled '0' + +config rule + option action 'wifi' + option value 'off' + option smstext 'wifioff' + option authorization 'password' + option allowed_phone 'all' + option write_wifi '1' + option to_other_phone '0' + option enabled '0' + +config rule + option action 'mobile' + option value 'on' + option smstext 'mobileon' + option authorization 'password' + option allowed_phone 'all' + option write_mobile '1' + option to_other_phone '0' + option enabled '0' + +config rule + option action 'mobile' + option value 'off' + option smstext 'mobileoff' + option authorization 'password' + option allowed_phone 'all' + option write_mobile '1' + option to_other_phone '0' + option enabled '0' + +config rule + option action 'vpn' + option value 'on' + option smstext 'vpnon' + option authorization 'password' + option allowed_phone 'all' + option to_other_phone '0' + option enabled '0' + +config rule + option action 'vpn' + option value 'off' + option smstext 'vpnoff' + option authorization 'password' + option allowed_phone 'all' + option to_other_phone '0' + option enabled '0' + +config rule + option action 'vpnstatus' + option smstext 'vpnstatus' + option authorization 'password' + option allowed_phone 'all' + option to_other_phone '0' + option enabled '0' + +config rule + option action 'change_mobile_settings' + option smstext 'cellular' + option authorization 'password' + option allowed_phone 'all' + option simcard '1' + option to_other_phone '0' + option enabled '0' + +config rule + option action 'list_of_profile' + option smstext 'profdisp' + option authorization 'password' + option allowed_phone 'all' + option to_other_phone '0' + option enabled '0' + +config rule + option action 'ssh_access' + option smstext 'sshon' + option authorization 'password' + option allowed_phone 'all' + option ssh_access_enabled '1' + option ssh_access_remote '1' + option to_other_phone '0' + option enabled '0' + +config rule + option action 'ssh_access' + option smstext 'sshoff' + option authorization 'password' + option allowed_phone 'all' + option ssh_access_enabled '0' + option ssh_access_remote '0' + option to_other_phone '0' + option enabled '0' + +config rule + option action 'web_access' + option smstext 'webon' + option authorization 'password' + option allowed_phone 'all' + option web_access_enabled '1' + option webs_access_enabled '1' + option web_access_http '1' + option web_access_https '1' + option to_other_phone '0' + option enabled '0' + +config rule + option action 'web_access' + option smstext 'weboff' + option authorization 'password' + option allowed_phone 'all' + option web_access_enabled '0' + option webs_access_enabled '0' + option web_access_http '0' + option web_access_https '0' + option to_other_phone '0' + option enabled '0' + +config rule + option action 'firstboot' + option smstext 'restore' + option authorization 'password' + option allowed_phone 'all' + option to_other_phone '0' + option enabled '0' + +config rule + option action 'userdefaults' + option smstext 'userdefaults' + option authorization 'password' + option allowed_phone 'all' + option to_other_phone '0' + option enabled '0' + +config rule + option action 'gps_coordinates' + option smstext 'gps' + option authorization 'password' + option allowed_phone 'all' + option to_other_phone '0' + option enabled '0' + +config rule + option action 'gps' + option value 'off' + option smstext 'gps_off' + option authorization 'password' + option allowed_phone 'all' + option to_other_phone '0' + option enabled '0' + +config rule + option action 'gps' + option value 'on' + option smstext 'gps_on' + option authorization 'password' + option allowed_phone 'all' + option to_other_phone '0' + option enabled '0' + +config rule + option action 'fw_upgrade' + option smstext 'fw_upgrade' + option authorization 'password' + option allowed_phone 'all' + option to_other_phone '0' + option enabled '0' + +config rule + option action 'rms_status' + option smstext 'rms_status' + option authorization 'password' + option allowed_phone 'all' + option to_other_phone '0' + option enabled '0' + +config rule + option action 'rms_connect' + option smstext 'rms_connect' + option authorization 'password' + option allowed_phone 'all' + option to_other_phone '0' + option enabled '0' + +config rule + option action 'rms_action' + option value 'on' + option smstext 'rms_on' + option authorization 'password' + option allowed_phone 'all' + option to_other_phone '0' + option enabled '0' + +config rule + option action 'rms_action' + option value 'off' + option smstext 'rms_off' + option authorization 'password' + option allowed_phone 'all' + option to_other_phone '0' + option enabled '0' + +config rule + option action 'monitoring_status' + option smstext 'monitoring_status' + option authorization 'password' + option allowed_phone 'all' + option to_other_phone '0' + option enabled '0' + +config rule + option action 'uci' + option smstext 'uci' + option authorization 'password' + option allowed_phone 'all' + option to_other_phone '0' + option enabled '0' + +config rule + option action 'more' + option smstext 'more' + option authorization 'password' + option allowed_phone 'all' + option to_other_phone '0' + option enabled '0' + diff --git a/snmpd b/snmpd new file mode 100644 index 0000000..4aa3571 --- /dev/null +++ b/snmpd @@ -0,0 +1,99 @@ + +config agent 'general' + option enabled '0' + option ipfamily 'ipv4' + option port '161' + option v1mode '1' + option v2cmode '1' + option proto 'udp' + option mibfile '/etc/snmp/RUTX12.mib' + +config com2sec 'public' + option secname 'ro' + option source 'default' + option community 'public' + option ipaddr '0.0.0.0' + option netmask '0' + +config com2sec 'private' + option secname 'rw' + option source 'localhost' + option community 'private' + option ipaddr '127.0.0.1' + option netmask '32' + +config com2sec6 + option secname 'ro' + option source 'default' + option community 'public' + +config com2sec6 + option secname 'rw' + option source 'default' + option community 'private' + +config group 'public_v1' + option group 'public' + option version 'v1' + option secname 'ro' + +config group 'public_v2c' + option group 'public' + option version 'v2c' + option secname 'ro' + +config group 'public_usm' + option group 'public' + option version 'usm' + option secname 'ro' + +config group 'private_v1' + option group 'private' + option version 'v1' + option secname 'rw' + +config group 'private_v2c' + option group 'private' + option version 'v2c' + option secname 'rw' + +config group 'private_usm' + option group 'private' + option version 'usm' + option secname 'rw' + +config view 'all' + option viewname 'all' + option type 'included' + option oid '.1' + +config access 'public_access' + option group 'public' + option context 'none' + option version 'any' + option level 'noauth' + option prefix 'exact' + option read 'all' + option write 'none' + option notify 'none' + +config access 'private_access' + option group 'private' + option context 'none' + option version 'any' + option level 'noauth' + option prefix 'exact' + option read 'all' + option write 'all' + option notify 'all' + +config system + option sysLocation 'location' + option sysContact 'email@example.com' + option sysName 'name' + +config exec + option name 'filedescriptors' + option prog '/bin/cat' + option args '/proc/sys/fs/file-nr' + diff --git a/snmptrap b/snmptrap new file mode 100644 index 0000000..218ba01 --- /dev/null +++ b/snmptrap @@ -0,0 +1,4 @@ + +config server + option enabled 0 + option community public diff --git a/socat b/socat new file mode 100644 index 0000000..7df6358 --- /dev/null +++ b/socat @@ -0,0 +1,5 @@ +# forward port 8000 on IPv6 to IPv4 host port 80 +# change enable to '1' to use this example +config socat 'http' + option enable '0' + option SocatOptions '-d -d TCP6-LISTEN:8000,fork TCP4:192.168.1.20:80' diff --git a/sqm b/sqm new file mode 100644 index 0000000..e69de29 diff --git a/stunnel b/stunnel new file mode 100644 index 0000000..203bcd4 --- /dev/null +++ b/stunnel @@ -0,0 +1,4 @@ +config globals 'globals' + option setuid 'nobody' + option setgid 'nogroup' + diff --git a/system b/system new file mode 100644 index 0000000..59ded25 --- /dev/null +++ b/system @@ -0,0 +1,32 @@ + +config system 'system' + option hostname 'Teltonika-RUTX12.com' + option timezone 'UTC' + option ttylogin '0' + option urandom_seed '0' + option device_code 'RUTX1200XXXX' + option routername 'RUTX12' + option device_fw_version 'RUTX_R_00.07.04.3' + option log_buffer_size '128' + option log_size '200' + +config timeserver 'ntp' + option enabled '0' + option enable_server '0' + list server '0.pool.ntp.org' + list server '1.pool.ntp.org' + list server '2.pool.ntp.org' + list server '3.pool.ntp.org' + +config debug 'debug' + option sms_utils_debug_level '4' + +config ledman 'ledman' + option enabled '1' + +config mctl 'modem2' + option disable '0' + +config mctl 'modem' + option disable '0' + diff --git a/telnetd b/telnetd new file mode 100644 index 0000000..3afa6e7 --- /dev/null +++ b/telnetd @@ -0,0 +1,6 @@ + +config telnetd + option port '23' + option enable '0' + option _telnetWanAccess '0' + diff --git a/uhttpd b/uhttpd new file mode 100644 index 0000000..cfeafa6 --- /dev/null +++ b/uhttpd @@ -0,0 +1,54 @@ + +config uhttpd 'main' + option enable_http '1' + option enable_https '1' + option home '/www' + option rfc1918_filter '1' + option max_requests '10' + option max_connections '100' + option cert '/etc/uhttpd.crt' + option key '/etc/uhttpd.key' + option cgi_prefix '/cgi-bin' + option script_timeout '600' + option network_timeout '30' + option http_keepalive '0' + option tcp_keepalive '1' + option ubus_prefix '/ubus' + option no_dirlists '1' + option index_page 'cgi-bin/index' + option listen_http '80' + option listen_https '443' + option error_page '/cgi-bin/index' + option _httpWanAccess '1' + option _httpsWanAccess '1' + option redirect_https '0' + list lua_prefix '/api=/www/cgi-bin/api_dispatcher.lua' + +config uhttpd 'hotspot' + option enablehttp '1' + option home '/hotspotlogin' + 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 '600' + option network_timeout '30' + option http_keepalive '20' + option tcp_keepalive '1' + option no_dirlists '1' + option disabled '1' + option listen_http '81' + option listen_https '444' + +config cert 'defaults' + option days '730' + option key_type 'ec' + option bits '2048' + option ec_curve 'P-256' + option country 'LT' + option state 'Vilnius' + option location 'Vilnius' + option commonname 'Teltonika' + diff --git a/ulogd b/ulogd new file mode 100644 index 0000000..84ee93a --- /dev/null +++ b/ulogd @@ -0,0 +1,25 @@ + +config ulogd "global" + option enabled '0' + option loglevel '5' + option logfile '/var/log/ulogd.log' + list plugin 'ulogd_inppkt_NFLOG.so' + list plugin 'ulogd_filter_IFINDEX.so' + list plugin 'ulogd_filter_IP2STR.so' + list plugin 'ulogd_filter_PRINTPKT.so' + list plugin 'ulogd_output_LOGEMU.so' + list plugin 'ulogd_raw2packet_BASE.so' + option stack 'log1:NFLOG,base1:BASE,ifi1:IFINDEX,ip2str1:IP2STR,print1:PRINTPKT,emu1:LOGEMU' + +config log 'log1' + option group '1' + +config emu 'emu1' + option file '/var/log/ulogd_wifi.log' + option sync '0' + +config server 'ftp' + option extra_name_info 'none' + option fixed '0' + option interval '1' + option weekdays 'mon,tue,wed,thu,fri,sat,sun' diff --git a/upnpd b/upnpd new file mode 100644 index 0000000..e9b8161 --- /dev/null +++ b/upnpd @@ -0,0 +1,28 @@ + +config upnpd 'config' + option enabled '0' + option enable_natpmp '1' + option enable_upnp '1' + option secure_mode '1' + option log_output '0' + option download '1024' + option upload '512' + option internal_iface 'lan' + option port '5000' + option upnp_lease_file '/var/run/miniupnpd.leases' + option igdv1 '1' + +config perm_rule + option action 'allow' + option ext_ports '1024-65535' + option int_addr '0.0.0.0/0' + option int_ports '1024-65535' + option comment 'Allow high ports' + +config perm_rule + option action 'deny' + option int_addr '0.0.0.0/0' + option comment 'Default deny' + option ext_ports '1-65535' + option int_ports '1-65535' + diff --git a/user_groups b/user_groups new file mode 100644 index 0000000..e69de29 diff --git a/vrrpd b/vrrpd new file mode 100644 index 0000000..e69de29 diff --git a/vuci b/vuci new file mode 100644 index 0000000..f01011b --- /dev/null +++ b/vuci @@ -0,0 +1,9 @@ + +config core 'main' + option session_timeout '1800' + option lang 'en' + option advanced '1' + +config internal 'languages' + option en 'English' + diff --git a/widget b/widget new file mode 100644 index 0000000..0df7e40 --- /dev/null +++ b/widget @@ -0,0 +1,43 @@ + +config widget + option id 'widget1' + option type 'ethernet' + option position '1' + option enabled '1' + +config widget + option id 'mobile-widget1' + option type 'mobile' + option position '2' + option enabled '1' + +config widget + option id 'mobile-widget2' + option type 'mobile' + option position '3' + option enabled '1' + +config widget + option id 'widget3' + option type 'system' + option position '4' + option enabled '1' + +config widget + option id 'radio0.network1' + option type 'wifi' + option position '5' + option enabled '1' + +config widget + option id 'radio1.network1' + option type 'wifi' + option position '6' + option enabled '1' + +config widget + option id 'widget5' + option type 'rms' + option position '7' + option enabled '1' + diff --git a/wifi_scanner b/wifi_scanner new file mode 100644 index 0000000..126b569 --- /dev/null +++ b/wifi_scanner @@ -0,0 +1,4 @@ +config section wifi_scan + option 'two_g_enabled' '0' + option 'five_g_enabled' '0' + option 'interval' '10' diff --git a/wireless b/wireless new file mode 100644 index 0000000..d667544 --- /dev/null +++ b/wireless @@ -0,0 +1,47 @@ + +config wifi-device 'radio0' + option type 'mac80211' + option channel '11' + option hwmode '11g' + option path 'platform/soc/a000000.wifi' + option htmode 'HT20' + option country 'US' + +config wifi-iface 'default_radio0' + option device 'radio0' + option network 'lan' + option mode 'ap' + option ssid 'RUT_9A6A_2G' + option wifi_id 'wifi0' + option encryption 'psk2+tkip+ccmp' + option key '47Delmag_Abi' + option skip_inactivity_poll '0' + option hidden '0' + option ieee80211r '0' + option isolate '0' + option short_preamble '1' + option disassoc_low_ack '1' + +config wifi-device 'radio1' + option type 'mac80211' + option channel '36' + option hwmode '11a' + option path 'platform/soc/a800000.wifi' + option htmode 'VHT80' + option country 'US' + +config wifi-iface 'default_radio1' + option device 'radio1' + option network 'lan' + option mode 'ap' + option ssid 'RUT_9A6B_5G' + option wifi_id 'wifi1' + option encryption 'psk2+tkip+ccmp' + option key '47Delmag_Abi' + option skip_inactivity_poll '0' + option hidden '0' + option ieee80211r '0' + option isolate '0' + option short_preamble '1' + option disassoc_low_ack '1' + diff --git a/xl2tpd b/xl2tpd new file mode 100644 index 0000000..3a01c0b --- /dev/null +++ b/xl2tpd @@ -0,0 +1,3 @@ +config 'login' + option 'username' 'user' + option 'password' 'pass' diff --git a/xl2tpdv3 b/xl2tpdv3 new file mode 100644 index 0000000..e69de29