Compare commits
No commits in common. "264d64526c949b40a18d671d73b0858c4470d207" and "11afd23d99fa6ac930b65f472455b83baca91045" have entirely different histories.
264d64526c
...
11afd23d99
2 changed files with 2 additions and 6 deletions
|
@ -43,7 +43,6 @@
|
|||
less
|
||||
killall
|
||||
screen
|
||||
inetutils
|
||||
];
|
||||
|
||||
users.users.jaina = {
|
||||
|
|
|
@ -3,11 +3,8 @@
|
|||
{
|
||||
networking.firewall.extraCommands = let user = config.services.postfix.user;
|
||||
in ''
|
||||
iptables -A OUTPUT -m owner ! --uid-owner ${user} -m tcp -p tcp --dport 25 -j REJECT --reject-with icmp-admin-prohibited
|
||||
ip6tables -A OUTPUT -m owner ! --uid-owner ${user} -m tcp -p tcp --dport 25 -j REJECT --reject-with icmp6-adm-prohibited
|
||||
|
||||
iptables -I OUTPUT -m tcp -p tcp --dport 25 -d 127.0.0.1 -j ACCEPT
|
||||
ip6tables -I OUTPUT -m tcp -p tcp --dport 25 -d 127.0.0.1 -j ACCEPT
|
||||
iptables -I OUTPUT -m owner ! --uid-owner ${user} -m tcp -p tcp --dport 25 -j REJECT --reject-with icmp-admin-prohibited
|
||||
ip6tables -I OUTPUT -m owner ! --uid-owner ${user} -m tcp -p tcp --dport 25 -j REJECT --reject-with icmp6-adm-prohibited
|
||||
'';
|
||||
|
||||
services.postfix = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue