Record authenticated host firewall and effective SSH audit
myfileagent-python-ci/pipeline/head This commit looks good
myfileagent-python-ci/pipeline/head This commit looks good
This commit is contained in:
@@ -0,0 +1,161 @@
|
||||
Sat Nov 21 01:33:14 UTC 2026
|
||||
Status: inactive
|
||||
-P INPUT ACCEPT
|
||||
-P FORWARD DROP
|
||||
-P OUTPUT ACCEPT
|
||||
-N DOCKER
|
||||
-N DOCKER-BRIDGE
|
||||
-N DOCKER-CT
|
||||
-N DOCKER-FORWARD
|
||||
-N DOCKER-INTERNAL
|
||||
-N DOCKER-USER
|
||||
-A FORWARD -j DOCKER-USER
|
||||
-A FORWARD -j DOCKER-FORWARD
|
||||
-A DOCKER -d 172.20.0.4/32 ! -i br-86ed1c3d2d9e -o br-86ed1c3d2d9e -p tcp -m tcp --dport 8080 -j ACCEPT
|
||||
-A DOCKER -d 172.20.0.3/32 ! -i br-86ed1c3d2d9e -o br-86ed1c3d2d9e -p tcp -m tcp --dport 3000 -j ACCEPT
|
||||
-A DOCKER -d 172.19.0.2/32 ! -i br-b6a036ce8755 -o br-b6a036ce8755 -p tcp -m tcp --dport 443 -j ACCEPT
|
||||
-A DOCKER -d 172.19.0.2/32 ! -i br-b6a036ce8755 -o br-b6a036ce8755 -p tcp -m tcp --dport 80 -j ACCEPT
|
||||
-A DOCKER ! -i br-fafffed2f151 -o br-fafffed2f151 -j DROP
|
||||
-A DOCKER ! -i br-86ed1c3d2d9e -o br-86ed1c3d2d9e -j DROP
|
||||
-A DOCKER ! -i br-92f4e2c7b300 -o br-92f4e2c7b300 -j DROP
|
||||
-A DOCKER ! -i br-b6a036ce8755 -o br-b6a036ce8755 -j DROP
|
||||
-A DOCKER ! -i br-beb046825b96 -o br-beb046825b96 -j DROP
|
||||
-A DOCKER ! -i br-dbaf723249ad -o br-dbaf723249ad -j DROP
|
||||
-A DOCKER ! -i br-f00e1e54e815 -o br-f00e1e54e815 -j DROP
|
||||
-A DOCKER ! -i docker0 -o docker0 -j DROP
|
||||
-A DOCKER-BRIDGE -o br-fafffed2f151 -j DOCKER
|
||||
-A DOCKER-BRIDGE -o br-86ed1c3d2d9e -j DOCKER
|
||||
-A DOCKER-BRIDGE -o br-92f4e2c7b300 -j DOCKER
|
||||
-A DOCKER-BRIDGE -o br-b6a036ce8755 -j DOCKER
|
||||
-A DOCKER-BRIDGE -o br-beb046825b96 -j DOCKER
|
||||
-A DOCKER-BRIDGE -o br-dbaf723249ad -j DOCKER
|
||||
-A DOCKER-BRIDGE -o br-f00e1e54e815 -j DOCKER
|
||||
-A DOCKER-BRIDGE -o docker0 -j DOCKER
|
||||
-A DOCKER-CT -o br-fafffed2f151 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
|
||||
-A DOCKER-CT -o br-86ed1c3d2d9e -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
|
||||
-A DOCKER-CT -o br-92f4e2c7b300 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
|
||||
-A DOCKER-CT -o br-b6a036ce8755 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
|
||||
-A DOCKER-CT -o br-beb046825b96 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
|
||||
-A DOCKER-CT -o br-dbaf723249ad -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
|
||||
-A DOCKER-CT -o br-f00e1e54e815 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
|
||||
-A DOCKER-CT -o docker0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
|
||||
-A DOCKER-FORWARD -j DOCKER-CT
|
||||
-A DOCKER-FORWARD -j DOCKER-INTERNAL
|
||||
-A DOCKER-FORWARD -j DOCKER-BRIDGE
|
||||
-A DOCKER-FORWARD -i br-fafffed2f151 -j ACCEPT
|
||||
-A DOCKER-FORWARD -i br-86ed1c3d2d9e -j ACCEPT
|
||||
-A DOCKER-FORWARD -i br-92f4e2c7b300 -j ACCEPT
|
||||
-A DOCKER-FORWARD -i br-b6a036ce8755 -j ACCEPT
|
||||
-A DOCKER-FORWARD -i br-beb046825b96 -j ACCEPT
|
||||
-A DOCKER-FORWARD -i br-dbaf723249ad -j ACCEPT
|
||||
-A DOCKER-FORWARD -i br-f00e1e54e815 -j ACCEPT
|
||||
-A DOCKER-FORWARD -i docker0 -j ACCEPT
|
||||
-P INPUT ACCEPT
|
||||
-P FORWARD ACCEPT
|
||||
-P OUTPUT ACCEPT
|
||||
-N DOCKER
|
||||
-N DOCKER-BRIDGE
|
||||
-N DOCKER-CT
|
||||
-N DOCKER-FORWARD
|
||||
-N DOCKER-INTERNAL
|
||||
-N DOCKER-USER
|
||||
-A FORWARD -j DOCKER-USER
|
||||
-A FORWARD -j DOCKER-FORWARD
|
||||
-A DOCKER-FORWARD -j DOCKER-CT
|
||||
-A DOCKER-FORWARD -j DOCKER-INTERNAL
|
||||
-A DOCKER-FORWARD -j DOCKER-BRIDGE
|
||||
port 22
|
||||
addressfamily any
|
||||
listenaddress [::]:22
|
||||
listenaddress 0.0.0.0:22
|
||||
usepam yes
|
||||
logingracetime 120
|
||||
x11displayoffset 10
|
||||
maxauthtries 6
|
||||
maxsessions 10
|
||||
clientaliveinterval 0
|
||||
clientalivecountmax 3
|
||||
requiredrsasize 1024
|
||||
streamlocalbindmask 0177
|
||||
unusedconnectiontimeout none
|
||||
permitrootlogin without-password
|
||||
ignorerhosts yes
|
||||
ignoreuserknownhosts no
|
||||
hostbasedauthentication no
|
||||
hostbasedusesnamefrompacketonly no
|
||||
pubkeyauthentication yes
|
||||
kerberosauthentication no
|
||||
kerberosorlocalpasswd yes
|
||||
kerberosticketcleanup yes
|
||||
gssapiauthentication no
|
||||
gssapicleanupcredentials yes
|
||||
gssapikeyexchange no
|
||||
gssapistrictacceptorcheck yes
|
||||
gssapistorecredentialsonrekey no
|
||||
gssapikexalgorithms gss-group14-sha256-,gss-group16-sha512-,gss-nistp256-sha256-,gss-curve25519-sha256-,gss-group14-sha1-,gss-gex-sha1-
|
||||
passwordauthentication no
|
||||
kbdinteractiveauthentication no
|
||||
printmotd no
|
||||
printlastlog yes
|
||||
x11forwarding yes
|
||||
x11uselocalhost yes
|
||||
permittty yes
|
||||
permituserrc yes
|
||||
strictmodes yes
|
||||
tcpkeepalive yes
|
||||
permitemptypasswords no
|
||||
compression yes
|
||||
gatewayports no
|
||||
usedns no
|
||||
allowtcpforwarding yes
|
||||
allowagentforwarding yes
|
||||
disableforwarding no
|
||||
allowstreamlocalforwarding yes
|
||||
streamlocalbindunlink no
|
||||
fingerprinthash SHA256
|
||||
exposeauthinfo no
|
||||
debianbanner yes
|
||||
pidfile /run/sshd.pid
|
||||
modulifile /etc/ssh/moduli
|
||||
xauthlocation /usr/bin/xauth
|
||||
ciphers chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
|
||||
macs umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
|
||||
banner none
|
||||
forcecommand none
|
||||
chrootdirectory none
|
||||
trustedusercakeys none
|
||||
revokedkeys none
|
||||
securitykeyprovider internal
|
||||
authorizedprincipalsfile none
|
||||
versionaddendum none
|
||||
authorizedkeyscommand none
|
||||
authorizedkeyscommanduser none
|
||||
authorizedprincipalscommand none
|
||||
authorizedprincipalscommanduser none
|
||||
hostkeyagent none
|
||||
kexalgorithms sntrup761x25519-sha512@openssh.com,curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256
|
||||
casignaturealgorithms ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256
|
||||
hostbasedacceptedalgorithms ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256
|
||||
hostkeyalgorithms ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256
|
||||
pubkeyacceptedalgorithms ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256
|
||||
loglevel INFO
|
||||
syslogfacility AUTH
|
||||
authorizedkeysfile .ssh/authorized_keys .ssh/authorized_keys2
|
||||
hostkey /etc/ssh/ssh_host_rsa_key
|
||||
hostkey /etc/ssh/ssh_host_ecdsa_key
|
||||
hostkey /etc/ssh/ssh_host_ed25519_key
|
||||
acceptenv LANG
|
||||
acceptenv LC_*
|
||||
authenticationmethods any
|
||||
channeltimeout none
|
||||
subsystem sftp /usr/lib/openssh/sftp-server
|
||||
maxstartups 10:30:100
|
||||
persourcemaxstartups none
|
||||
persourcenetblocksize 32:128
|
||||
permittunnel no
|
||||
ipqos lowdelay throughput
|
||||
rekeylimit 0 0
|
||||
permitopen any
|
||||
permitlisten any
|
||||
permituserenvironment no
|
||||
pubkeyauthoptions none
|
||||
Reference in New Issue
Block a user