Port Forward only internal port possible?

hi everybody is possible to make that ? because

for me in external port is red if i empty value

config redirect
	option dest 'lan'
	option target 'DNAT'
	option name 'port just internal'
	option src 'wan'
	option dest_ip '192.168.2.160'
	list proto 'tcp'
	list proto 'udp'
	
	option dest_port '1-65535'

What is your goal here? Port forwarding is intended to direct external connections with a specific (or range of) destination port(s) to a specific host behind the router. If you wish to forward all ports, put that in the source destination port field.

If you have something else in mind, please describe what you hope to have happen.

/dev/stdin:216:68-74: Error: transport protocol mapping is only valid after transport protocol match
                ip saddr 192.168.2.0/24 ip daddr ¨¨¨¨¨¨ dnat 192.168.2.160:1-65535 comment "!fw4: DMZ (reflection)"
                                                              ~~~~               ^^^^^^^
/dev/stdin:224:48-54: Error: transport protocol mapping is only valid after transport protocol match
                meta nfproto ipv4 counter dnat 192.168.2.160:1-65535 comment "!fw4: DMZ"
                                          ~~~~               ^^^^^^^

```¨

i would like skip this error in a precis goal

You need to define the source destination port. Without it, the forward is not valid. Is there a reason you wish to omit it?

Also, why are you forwarding all incoming ports? I get the idea of a dmz, but it is usually best to forward only the necessary ports to the host.

yes exactly thanks for your help

i have put a port src now and he work

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.