User Tools

Site Tools


initial_config

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

initial_config [2025/07/26 17:09] – - Imported by DokuWiki Advanced Plugin wikiadminitial_config [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-<code bash> 
-yum update 
-yum check-update --security 
-yum groupinstall "Development Tools" -y 
-yum vim mlocate telnet wget bind-utils open-vm-tools tcpdump traceroute policycoreutils-python sysstat bash-completion yum-utils 
-</code> 
  
-<code bash> 
-# opções para o vim 
-echo "set incsearch" >> /etc/vimrc 
-echo "set background=dark" >> /etc/vimrc 
-</code> 
- 
-<code bash> 
-# Alias e outras opção do bash 
-cat /root/.bashrc 
-# Cores 
-#Preto='\[\033[01;30m\]' 
-#Vermelho='\[\033[01;31m\]' 
-#Verde='\[\033[01;32m\]' 
-#Amarelo='\[\033[01;33m\]' 
-#Azul='\[\033[01;34m\]' 
-#Roxo='\[\033[01;35m\]' 
-#Ciano='\[\033[01;36m\]' 
-#Branco='\[\033[01;37m\]' 
-Preto='\[\033[02;30m\]' 
-Vermelho='\[\033[02;31m\]' 
-Verde='\[\033[02;32m\]' 
-Amarelo='\[\033[02;33m\]' 
-Azul='\[\033[02;34m\]' 
-Roxo='\[\033[02;35m\]' 
-Ciano='\[\033[02;36m\]' 
-Branco='\[\033[02;37m\]' 
- 
-#export PS1="$Branco \u $Azul@$Vermelho \h $Roxo: \w $Branco# \[\033[00m\]" 
-#export PS1='\[\033[02;32m\]\u@\H:\[\033[02;33m\]\w\$\[\033[00m\] ' 
-export PS1='\[\033[02;32m\]\u\[\033[02;37m\]@\[\033[02;32m\]\H\[\033[02;37m\]:\[\033[02;33m\]\w\$\[\033[00m\] ' 
-#[ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h \W]\\$ " 
-#[root@pa-mba-ldap-01 ~]# 
-#root@pa-mba-ldap-01:~#  
- 
-export HISTTIMEFORMAT='%d-%m-%Y %H:%M- ' 
-export EDITOR='vim' 
- 
-alias rm='rm -i' 
-alias cp='cp -i' 
-alias mv='mv -i' 
-alias echo='/bin/echo' 
-alias egrep='egrep --color=auto' 
-alias fgrep='fgrep --color=auto' 
-alias grep='grep --color=auto' 
-alias l.='ls -d .* --color=auto' 
-alias ll='ls -alF --color=auto' 
-alias ls='ls --color=auto' 
-alias vi='vim' 
-alias ping='ping -c3' 
- 
-# Source global definitions 
-if [ -f /etc/bashrc ]; then 
- . /etc/bashrc 
-fi 
-</code> 
- 
-<code bash> 
-# removendo regras default 
-firewall-cmd --permanent --zone=home --remove-service=dhcpv6-client 
-firewall-cmd --permanent --zone=home --remove-service=mdns 
-firewall-cmd --permanent --zone=home --remove-service=samba-client 
-firewall-cmd --permanent --zone=home --remove-service=ssh 
-firewall-cmd --permanent --zone=internal --remove-service=dhcpv6-client 
-firewall-cmd --permanent --zone=internal --remove-service=mdns 
-firewall-cmd --permanent --zone=internal --remove-service=samba-client 
-firewall-cmd --permanent --zone=internal --remove-service=ssh 
-firewall-cmd --permanent --zone=work --remove-service=dhcpv6-client 
-firewall-cmd --permanent --zone=work --remove-service=ssh 
-firewall-cmd --permanent --zone=public --remove-service=dhcpv6-client 
-firewall-cmd --permanent --zone=public --remove-service=ssh 
-firewall-cmd --permanent --zone=external --remove-masquerade 
-firewall-cmd --permanent --zone=external --remove-service=ssh 
-firewall-cmd --permanent --zone=dmz --remove-service=ssh 
-firewall-cmd --reload  
-</code> 
- 
-<code bash> 
-# ssh 
-# firewall-cmd --permanent --add-rich-rule 'rule family="ipv4" source address="177.75.176.0/20" port port="22001" protocol="tcp" accept' 
-# firewall-cmd --permanent --add-rich-rule 'rule family="ipv4" source address="177.75.176.5" service name="ssh" accept'  
-firewall-cmd --permanent --add-rich-rule 'rule family="ipv4" source address="177.75.182.133/32" destination address=177.75.176.57/32 service name="ssh" accept' 
-firewall-cmd --reload  
-</code> 
- 
-<code bash> 
-systemctl reboot 
-</code> 
initial_config.1753560543.txt.gz · Last modified: by wikiadm