Új hozzászólás Aktív témák

  • Keem1

    veterán

    Srácok, iptables helpet szeretnék kérni.
    OS: Ubuntu (server) 24.04
    A cél: 80,443 portok nyitása apache webservernek.

    Ez van most:
    Chain INPUT (policy ACCEPT)
    num target prot opt source destination
    1 ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
    2 ACCEPT icmp -- anywhere anywhere
    3 ACCEPT all -- anywhere anywhere
    4 ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
    5 REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
    6 ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:https
    7 ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:http
    8 ACCEPT tcp -- anywhere anywhere tcp dpt:http
    9 ACCEPT tcp -- anywhere anywhere tcp dpt:https
    10 ACCEPT udp -- anywhere anywhere udp spt:ntp

    Na, ezzel nem érhető el kintről a webserver (de a curl http://localhost kiválóan megy).

    Ha ez segít, ha ezt a rule-t bedobom, akkor kintről is elérhető (de nem akarom ezt permanensen):
    sudo iptables -I INPUT -j ACCEPT

    Mit rontok el?
    Előre is köszi a helpet. :R

Új hozzászólás Aktív témák