Changes between Version 5 and Version 6 of ServBelmez


Ignore:
Timestamp:
Apr 21, 2025, 10:49:00 AM (3 weeks ago)
Author:
i22balur
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ServBelmez

    v5 v6  
    7777
    7878'''iptables'''
     79
     80Las reglas que se han añadido han sido las siguientes:
     81
     82{{{#!bash
     83iptables -A INPUT -p tcp --dport 2049 -j ACCEPT   # Puerto para NFS
     84iptables -A INPUT -p udp --dport 2049 -j ACCEPT   # UDP para NFS
     85iptables -A INPUT -p udp --dport 111 -j ACCEPT    # UDP para rpcbind
     86iptables -A INPUT -p tcp --dport 20048 -j ACCEPT  # Mountd
     87iptables -A INPUT -p udp --dport 20048 -j ACCEPT  # Mountd
     88iptables -A INPUT -j REJECT --reject-with icmp-host-prohibited
     89}}}
     90
     91Al final se tiene lo siguiente:
     92
     93{{{#!bash
     94Chain INPUT (policy ACCEPT)
     95target     prot opt source               destination         
     96ACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED
     97ACCEPT     icmp --  anywhere             anywhere           
     98ACCEPT     all  --  anywhere             anywhere           
     99ACCEPT     tcp  --  anywhere             anywhere             state NEW tcp dpt:ssh
     100ACCEPT     tcp  --  anywhere             anywhere             state NEW tcp dpt:nrpe
     101ACCEPT     udp  --  anywhere             anywhere             udp dpt:tftp
     102ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:tftp
     103ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:nfs
     104ACCEPT     udp  --  anywhere             anywhere             udp dpt:nfs
     105ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:sunrpc
     106ACCEPT     udp  --  anywhere             anywhere             udp dpt:sunrpc
     107ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:mountd
     108ACCEPT     udp  --  anywhere             anywhere             udp dpt:mountd
     109ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:npp
     110REJECT     all  --  anywhere             anywhere             reject-with icmp-host-prohibited
     111
     112Chain FORWARD (policy ACCEPT)
     113target     prot opt source               destination         
     114REJECT     all  --  anywhere             anywhere             reject-with icmp-host-prohibited
     115
     116Chain OUTPUT (policy ACCEPT)
     117target     prot opt source               destination         
     118
     119Chain DOCKER-USER (0 references)
     120target     prot opt source               destination
     121}}}