A
A
Alexey Green2015-12-07 19:51:12
linux
Alexey Green, 2015-12-07 19:51:12

How to get to your server through an external ip address while on the same network as the server?

I have a home server with a bunch of services I need, including Seafile file synchronization.
On a laptop, I have to switch the domain from external to internal when I return home, due to the fact that when I go to an external address inside the local network, it transfers to the router's web face.
The router is running OpenWRT.
How to correctly set up a rule for traffic in OpenWRT?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Grin, 2015-12-07
@lexforceterror


I solved the problem very simply, maybe /etc/config/firewall will help someone too

config redirect
        option enabled '1'
        option target 'DNAT'
        option proto 'tcp'
        option src_dport '80'
        option dest_ip '192.168.1.5'
        option dest_port '80'
        option name 'dnat_80_rule'
        option src 'lan'
        option src_dip 'x.x.x.x'
        option dest 'wan'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question