summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xremote/rootfs/rootfs-stage32/data/opt/openslx/scripts/udhcpc-openslx4
1 files changed, 4 insertions, 0 deletions
diff --git a/remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/udhcpc-openslx b/remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/udhcpc-openslx
index 4c1d9ffc..c2dbfbb4 100755
--- a/remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/udhcpc-openslx
+++ b/remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/udhcpc-openslx
@@ -132,6 +132,10 @@ case "$1" in
# Mark network target as reached
systemctl start network.target
+ # Port redirection for printing
+ iptables -A INPUT -i br0 -p tcp --dport 515 -j DROP
+ iptables -A INPUT -i br0 -p tcp --dport 5515 -j DROP
+ iptables -t nat -A PREROUTING -p tcp --dport 515 -j DNAT --to-destination 127.0.0.1:5515
fi
;;