Hi there!
today I upgraded my Linksys WRT3200ACM to latest version of OpenWRT (from 19.07.7 to 23.05.2). Before the upgrade I moved the following files, due to the new syntax in network:
/etc/config/system --> /etc/config/system.bak
/etc/config/network --> /etc/config/network.bak
/etc/config/firewall --> /etc/config/firewall.bak
After that I run the sysupgrade within luci which worked perfectly. After some post-upgrade configs the routers works as expected – exept port forwarding.
I just want to forward the wan traffic to my websever which on 192.168.10.130 (ports 443 & 80)
I tried a lot of stuff but couldn´t get it working. Help would be appreciated!
Here are some config files which might be helpful:
cat /etc/config/firewall
config defaults
option input 'DROP'
option output 'ACCEPT'
option forward 'DROP'
option synflood_protect '1'
option drop_invalid '1'
config zone
option name 'lan'
list network 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
config zone
option name 'wan'
list network 'wan'
list network 'wan6'
option input 'DROP'
option output 'ACCEPT'
option forward 'DROP'
option masq '1'
option mtu_fix '1'
config forwarding
option src 'lan'
option dest 'wan'
config rule
option name 'Allow-DHCP-Renew'
option src 'wan'
option proto 'udp'
option dest_port '68'
option target 'ACCEPT'
option family 'ipv4'
config rule
option name 'Allow-Ping'
option src 'wan'
option proto 'icmp'
option icmp_type 'echo-request'
option family 'ipv4'
option target 'ACCEPT'
config rule
option name 'Allow-IGMP'
option src 'wan'
option proto 'igmp'
option family 'ipv4'
option target 'ACCEPT'
config rule
option name 'Allow-DHCPv6'
option src 'wan'
option proto 'udp'
option dest_port '546'
option family 'ipv6'
option target 'ACCEPT'
config rule
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'
config rule
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'
config rule
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'
config rule
option name 'Allow-IPSec-ESP'
option src 'wan'
option dest 'lan'
option proto 'esp'
option target 'ACCEPT'
config rule
option name 'Allow-ISAKMP'
option src 'wan'
option dest 'lan'
option dest_port '500'
option proto 'udp'
option target 'ACCEPT'
config rule
option name 'webservices'
option src 'wan'
option src_port '80'
list dest_ip '192.168.10.130'
option dest_port '80'
option target 'ACCEPT'
option enabled '0'
option dest 'lan'
config rule
option name 'webservices_443'
option src 'wan'
option src_port '443'
list dest_ip '192.168.10.130'
option dest_port '443'
option target 'ACCEPT'
option enabled '0'
option dest 'lan'
config redirect
option dest 'lan'
option target 'DNAT'
option name 'webservices'
option src 'wan'
option src_dport '80'
option dest_ip '192.168.10.130'
option dest_port '80'
config redirect
option dest 'lan'
option target 'DNAT'
option name 'webservices_443'
option src 'wan'
option src_dport '443'
option dest_ip '192.168.10.130'
option dest_port '443'
cat /etc/config/system
config system
option hostname 'OpenWrt'
option timezone 'CET-1CEST,M3.5.0,M10.5.0/3'
option ttylogin '0'
option log_size '64'
option urandom_seed '0'
option compat_version '1.1'
option zonename 'Europe/Vienna'
option log_proto 'udp'
option conloglevel '8'
option cronloglevel '5'
config timeserver 'ntp'
list server '0.openwrt.pool.ntp.org'
list server '1.openwrt.pool.ntp.org'
list server '2.openwrt.pool.ntp.org'
list server '3.openwrt.pool.ntp.org'
config led 'led_wan'
option name 'WAN'
option sysfs 'pca963x:rango:white:wan'
option trigger 'netdev'
option mode 'link tx rx'
option dev 'wan'
config led 'led_usb1'
option name 'USB 1'
option sysfs 'pca963x:rango:white:usb2'
option trigger 'usbport'
list port 'usb1-port1'
config led 'led_usb2'
option name 'USB 2'
option sysfs 'pca963x:rango:white:usb3_1'
option trigger 'usbport'
list port 'usb2-port1'
list port 'usb3-port1'
config led 'led_usb2_ss'
option name 'USB 2 SS'
option sysfs 'pca963x:rango:white:usb3_2'
option trigger 'usbport'
list port 'usb3-port1'
cat /etc/config/network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd23:b61f:de8c::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.10.1'
option netmask '255.255.255.0'
option ip6assign '60'
config device
option name 'wan'
option macaddr '26:f5:a2:c4:35:30'
config interface 'wan'
option device 'wan'
option proto 'dhcp'
config interface 'wan6'
option device 'wan'
option proto 'dhcpv6'