iptables 때문에 apt-get 설치가 불가능합니다.

iptables 때문에 apt-get 설치가 불가능합니다.

OVH VPS에서 iptables로 작업하고 있지만 Ubuntu 패키지에 액세스할 수 없으며 이유를 전혀 모르겠습니다...

apt-get install package_name

말한다:

package_name을 찾을 수 없습니다

자동 완성을 사용할 수 없습니다.

하지만 을 하면 apt-get update모든 목적지에 도달합니다.

내 iptables 목록을 붙여넣습니다.

Chain INPUT (policy DROP)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED
ACCEPT     tcp  --  anywhere             anywhere             tcp spt:http
ACCEPT     tcp  --  anywhere             anywhere             tcp spt:domain
ACCEPT     udp  --  anywhere             anywhere             udp spt:domain
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:8443 state NEW
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:XXXX state NEW
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:http state NEW
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:https state NEW
ACCEPT     tcp  --  anywhere             anywhere             state NEW tcp dpt:smtp
ACCEPT     tcp  --  anywhere             anywhere             state NEW tcp dpt:submission
ACCEPT     icmp --  anywhere             anywhere             icmp echo-request
LOG        all  --  anywhere             anywhere             LOG level warning
DROP       all  --  anywhere             anywhere

Chain FORWARD (policy DROP)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere

누락된 규칙이 있으면 알려주세요!

관련 정보