일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- 알뜰폰
- 램가스초월
- 스톤에이지
- 복현오거리
- 자바스크립트
- 가상서버호스팅
- ConoHa
- 리눅스
- php
- Apache
- 시놀로지
- 티스토리
- 윈도우10
- OpenWrt
- KB증권
- jQuery
- 아파치
- Rocky
- 보르비스초월
- mysql
- SKT
- 알리익스프레스
- nginx
- KB국민카드
- iptime
- 킹북이초월
- proxmox
- centos
- PHP-FPM
- 소비전력
- Today
- Total
목록LINUX (27)
맛집 여행 캠핑 일상 생활
CentOS 7.x 버전에서는 Rocky 리눅스와 달리 yum install 로 설치를 지원하는 않는군요~yum install make gcc iptables-devel perl-Text-CSV_XS perl-App-cpanminus cpanm NetAddr::IP cpanm Getopt::Long wget mirror.koreaidc.com/iptables/xtables-addons-2.10.tar.gz tar xvfz xtables-addons-2.10.tar.gz cd xtables-addons-2.10 sed -i '/build_TARPIT=m/ s/^/#/' mconfig ./configure make && make install mkdir /usr/share/xt_geoip cd geoip ...
해외 IP 차단을 하려고 해도 수많은 아이피를 전부 iptables 로 차단하려면 수 만 줄이 넘어갑니다.한국 KR 이 아니면 차단하는게 간단해 보이네요~CentOS 7은 yum install 로 안되는데 rocky 9 은 쉽게 설치가 가능합니다.yum install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-9.noarch.rpmyum install iptables-services iptables-devel xtables-addons perl-Text-CSV_XS perl-App-cpanminus cpanm Net::CIDR::Lite cpanm Text::CSV_XS mkdir /usr/share/xt_geoip /usr/libex..
sysctl.conf 에 net.ipv6.conf.all.disable_ipv6 = 1 넣어서 ipv6를 disable 시켰더니 잘되던 sendmail 이 안되는군요~sendmail: fatal: parameter inet_interfaces: no local interface found for ::1메일 발송을 실패하였습니다. # vi /etc/postfix/main.cf inet_interfaces = all #inet_interfaces = localhostinet_interfaces = localhost 주석 처리하고 inet_interfaces = all 로 하니 잘 됩니다.
아파치 로그를 보다보니 아래의 유저에이전트가 있더군요~UserAgent : "Mozilla/5.0 (compatible; CensysInspect/1.1; +https://about.censys.io/)"로그를 카운트해보니 꽤나 많이 접속을 했네요~로그에서 추출한 아이피로 해당 아이피대역을 다 차단시켜줍니다.iptables -I INPUT -s 162.142.125.0/24 -j DROPiptables -I INPUT -s 167.94.138.0/24 -j DROPiptables -I INPUT -s 167.94.145.0/24 -j DROPiptables -I INPUT -s 167.94.146.0/24 -j DROPiptables -I INPUT -s 199.45.154.0/24 -j DROPipta..
CentOS 7.x 버전에서 mrtg 와 snmp 를 설치하고 테스트 하는데 snmpd Connectio from UDP 161 REFUSED 가 되네요~[root@centos ~]# snmpwalk -v2c -c public localhost system Timeout: No Response from localhost [root@centos conf.d]# systemctl status snmpd● snmpd.service - Simple Network Management Protocol (SNMP) Daemon. Loaded: loaded (/usr/lib/systemd/system/snmpd.service; enabled; vendor preset: disabled) Active: activ..
아파치 설정 값 중에 Timeout 을 5초로 했더니 워드프레스에서 부하가 좀 걸리는 작업은 대부분 아래와 같은 에러를 뿜으며 실행이 제대로 안되네요~Service UnavailableThe server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.위 메시지는 웹브라우저에서 보여지는 화면입니다.그리고 아래는 아파치 에러로그입니다.[Wed Oct 16 08:05:45.859829 2024] [proxy_fcgi:error] [pid 3822] (70007)The timeout specified has expired: [client 192.1..
USB 무선랜이 있어서 Proxmox 에서 핫스팟을 설정해서 무선공유기로 변신을 해봤습니다.root@proxmox:~# nmcli device | grep wifiwlx35a35ce08535 wifi disconnected --nmcli d | grep wifi 로 하셔도 됩니다.위의 명령어로 무선랜의 장치명을 알아냅니다.root@proxmox:~# nmcli con add con-name myHotspot ifname wlx35a35ce08535 type wifi ssid myWiFi00 \ mode ap wifi.band bg wifi.channel 5 ipv4.method sharedConnection 'myHotspot' (bb86341a-a30a-4527-9c7e-..
CentOS 7.x 버전에서 pstree 명령어가 안될때 psmisc 설치[root@raspberry yum.repos.d]# pstree-bash: pstree: command not found[root@raspberry yum.repos.d]# yum install psmiscLoaded plugins: fastestmirrorRepository epel is listed more than once in the configurationLoading mirror speeds from cached hostfileResolving Dependencies--> Running transaction check---> Package psmisc.armv7hl 0:22.20-17.el7 will be install..

라즈베리파이2를 재활용 하려니 할게 많네요~더군다나 CentOS 7 버전이라 더 힘드네요~Rocky Linux 는 64bit 부터 지원이 되서 할 수 없이 고난의 길로 갈 수 밖에 없네요~[root@raspberry yum.repos.d]# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpmLoaded plugins: fastestmirrorCannot open: https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm. Skipping.Error: Nothing to doepel-release 를 설치하려고 하니 안되는군요~브라우저에서 해..
CentOS 업데이트 지원이 중지된다더니 사실인가보네요~[root@localhost ~]# yum updateLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfileCould not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=armhfp&repo=os&infra=stock error was14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error" One of the configured repositories failed (Unknown), and yum doesn't have enoug..