diff options
| author | Christian Rößler | 2014-01-21 14:09:29 +0100 |
|---|---|---|
| committer | Christian Rößler | 2014-01-21 14:09:29 +0100 |
| commit | c0bcaf2abac83507c39d518ef1a35c374e3cc299 (patch) | |
| tree | 2977059901b72f2810fdbf3e35f70a00a2a4ff15 /remote/modules/printergui/data | |
| parent | [smartctl] conf file for opensuse (diff) | |
| parent | <freiburg config> Add nslcd startup (diff) | |
| download | tm-scripts-c0bcaf2abac83507c39d518ef1a35c374e3cc299.tar.gz tm-scripts-c0bcaf2abac83507c39d518ef1a35c374e3cc299.tar.xz tm-scripts-c0bcaf2abac83507c39d518ef1a35c374e3cc299.zip | |
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
Diffstat (limited to 'remote/modules/printergui/data')
| -rwxr-xr-x | remote/modules/printergui/data/opt/openslx/iptables/rules.d/50-lpd-redirect-and-fw | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/remote/modules/printergui/data/opt/openslx/iptables/rules.d/50-lpd-redirect-and-fw b/remote/modules/printergui/data/opt/openslx/iptables/rules.d/50-lpd-redirect-and-fw new file mode 100755 index 00000000..c0b724a2 --- /dev/null +++ b/remote/modules/printergui/data/opt/openslx/iptables/rules.d/50-lpd-redirect-and-fw @@ -0,0 +1,8 @@ +#!/bin/ash + +# Close from outside +iptables -A INPUT -i br0 -p tcp --dport 515 -j DROP +iptables -A INPUT -i br0 -p tcp --dport 5515 -j DROP +# Redirect from VM to lpd +iptables -t nat -A PREROUTING -s 192.168.0.0/16 -p tcp --dport 515 -j REDIRECT --to-port 5515 + |
