Code Monkey home page Code Monkey logo

Comments (5)

dave14305 avatar dave14305 commented on September 22, 2024

If the httpd server is on the router, the dest would not need to be lan. It could be omitted.

config redirect
        option target 'DNAT'
        option name 'httpd'
        option family 'ipv4'
        list proto 'tcp'
        option src 'wan'
        option src_dport '80'
        option dest_port '8079'

from openwrt.

jorgechamorro avatar jorgechamorro commented on September 22, 2024

If the httpd server is on the router, the dest would not need to be lan. It could be omitted.

Hi Dave, and thanks!

:8079 is a filter (before the server) that I'd want to be on the LAN (to be able to move it with ease). When the filter is in another (LAN) machine this works, but as soon as I move it to the router stops working because the source address it gets is wrong (only for the LAN clients).

I'd like to know why the reflection stops working depending on the destination, and if that's a bug or my bad (something I'm misunderstanding, very likely!).

Cheers,

from openwrt.

jorgechamorro avatar jorgechamorro commented on September 22, 2024

Tested:

Hostname		openWrt
Model			LeMaker Banana Pro
Architecture		ARMv7 Processor rev 4 (v7l)
Target Platform		sunxi/cortexa7
Firmware Version	OpenWrt 23.05.3 r23809-234f1a2efa / LuCI openwrt-23.05 branch git-24.086.45142-09d5a38
Kernel Version		5.15.150

(same redirect config)

And it does the same: only works if :8079 is in another machine.

from openwrt.

jorgechamorro avatar jorgechamorro commented on September 22, 2024

I've also tested using other ports, just in case :80 had somehow a different behavior due to LuCI, but it makes no difference.

from openwrt.

jorgechamorro avatar jorgechamorro commented on September 22, 2024

Could this have something to do with it?

https://git.openwrt.org/?p=project/firewall4.git;a=commitdiff;h=1a94915b5d38c9f17b27481add5a0a62341da627;hp=5c21714dc503d9cee6a638cb8ab06fb40ae473cc

from openwrt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.