my isp blocks port 25 so im trying to use iptables -t nat -I PREROUTING -p tcp -–dport 587 -j REDIRECT -–to-port 25 to redirect on debian but im having trouble saving as iptables-save doesnt work
iptables-save command should be called iptables-dump…
You can’t use this command to save iptables rules.
In yunohost the prefer way to manage that usecase to create a hook by following these steps:
- create a dir /etc/yunohost/hooks.d/post_iptable_rules
- add a file in this dir called 99-specific_rules with
#!/bin/bash
sudo iptables <YOUR SPECIFIC RULES HERE>
sudo ip6tables <YOUR SPECIFIC RULES HERE>
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.