aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lzma/patches
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-04-12 20:03:59 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-04-12 20:03:59 +0000
commitb457e4cfc9812ad3e811348208be462e7acc3c2f (patch)
treedb3d7de1e7c1d6c3c717d2df175a81bbfb7a31e0 /tools/lzma/patches
parent4423030e55d3158de75324da7cf69b04987ceac3 (diff)
downloadmaster-187ad058-b457e4cfc9812ad3e811348208be462e7acc3c2f.tar.gz
master-187ad058-b457e4cfc9812ad3e811348208be462e7acc3c2f.tar.bz2
master-187ad058-b457e4cfc9812ad3e811348208be462e7acc3c2f.zip
firewall: allow local redirection of ports
Allow a redirect like: config redirect option src 'wan' option dest 'lan' option src_dport '22001' option dest_port '22' option proto 'tcp' note the absence of the "dest_ip" field, meaning to terminate the connection on the firewall itself. This patch makes three changes: (1) moves the conntrack module into the conntrack package (but not any of the conntrack_* helpers). (2) fixes a bug where the wrong table is used when the "dest_ip" field is absent. (3) accepts incoming connections on the destination port on the input_ZONE table, but only for DNATted connections. In the above example, ssh -p 22 root@myrouter would fail from the outside, but: ssh -p 22001 root@myrouter would succeed. This is handy if: (1) you want to avoid ssh probes on your router, or (2) you want to redirect incoming connections on port 22 to some machine inside your firewall, but still want to allow firewall access from outside. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26617 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools/lzma/patches')
0 files changed, 0 insertions, 0 deletions