OpenWrt Forum Archive

Topic: open wrt PORT FORWARDING

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

Hi! I need help!
I need porf forwarding for plex media server 32400.
internet connection is L2TP protocol.
How can I forward port 32400 in this interface to my local machine (192.168.0.86)

Please help me!

Thank you!

is's a content file /etc/config/firewall

config defaults
        option syn_flood '1'
        option input 'ACCEPT'
        option output 'ACCEPT'
        option forward 'REJECT'

config zone
        option name 'lan'
        option network 'lan'
        option input 'ACCEPT'
        option output 'ACCEPT'
        option forward 'REJECT'

config zone
        option name 'wan'
        option input 'REJECT'
        option output 'ACCEPT'
        option forward 'REJECT'
        option masq '1'
        option mtu_fix '1'
        option network 'wan wwan'

- /etc/config/firewall 1/109 0%

config defaults
        option syn_flood '1'
        option input 'ACCEPT'
        option output 'ACCEPT'
        option forward 'REJECT'

config zone
        option name 'lan'
        option network 'lan'
        option input 'ACCEPT'
        option output 'ACCEPT'
        option forward 'REJECT'

config zone
        option name 'wan'
        option input 'REJECT'
        option output 'ACCEPT'
        option forward 'REJECT'
        option masq '1'
        option mtu_fix '1'
        option network 'wan wwan'

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-DHCPv6'
        option src 'wan'
        option proto 'udp'
        option src_ip 'fe80::/10'
        option src_port '547'
        option dest_ip 'fe80::/10'
        option dest_port '546'
- /etc/config/firewall 1/109 0%

(Last edited by Corleone on 27 Oct 2016, 07:07)

Go to the luci web interface --> Network --> Firewall --> Port Forwards and add "New port forward". It's self-explanatory

Or just enable UPnP on your router and let Plex figure it out.

Plex's ssl implementation doesn't play well with OpenWrt in my experience and simply adding a port forward has never worked for me, what does work for me is going to Network > DHCP and DNS > General Settings >  Domain whitelist in Luci and adding

plex.direct

Or just going into your Plex settings and allowing insecure connections. You can read about here if interested -

https://support.plex.tv/hc/en-us/articl … onnections

The discussion about router settings is at the bottom of the page.

(Last edited by mikemccartney on 28 Oct 2016, 03:15)

I've never tried using the manual port forward, but with UPnP (and allowing plex.direct to be rebinded in dhcp settings) everything works. I've even gotten it to work with split tunneling.

The discussion might have continued from here.