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

  • brickm

    őstag

    válasz bacus #1640 üzenetére

    Oké, ez eddig világos, de még mindig nem értem, ha az új kapcsolatoknak felveszek egy acceptet, hiba, mert minden ide tud tartozni, de ha nem veszek fel ide egy acceptet, akkor nincs is új kapcsolat...

    add chain=input action=drop connection-state=invalid comment="Disallow weird packets"
    add chain=input action=accept connection-state=new in-interface=LAN comment="Allow LAN access to router and Internet"
    add chain=input action=accept connection-state=established comment="Allow connections that originated from LAN"
    add chain=input action=accept connection-state=related comment="Allow connections that originated from LAN"
    add chain=input action=accept protocol=icmp comment="Allow ping ICMP from anywhere"
    add chain=input action=drop comment="Disallow anything from anywhere on any interface"
    add chain=forward action=drop connection-state=invalid comment="Disallow weird packets"
    add chain=forward action=accept connection-state=new in-interface=LAN comment="Allow LAN access to router and Internet"
    add chain=forward action=accept connection-state=established comment="Allow connections that originated from LAN"
    add chain=forward action=accept connection-state=related comment="Allow connections that originated from LAN"
    add chain=forward action=drop

    Ez ismét egy mikrotikes firewall rule list, itt is azt látom:
    Invalid csomagokat az inputról eldobja, majd established majd related elfogad, ami ebbe nem tartozott bele eldob.
    (bár nem értem akkor ezzel hogy lehet új kapcsolatot létesíteni, hisz ha én kiveszem a new accept rule-jaimat elmegy a net...

    eztán forwardról is eldobja az invalid csomagokat és megismétli forward chain-en amit az előbb, majd mindent eldob.

    Meglátásom szerint ugyan ez történik nálam is csak nincs köztes drop rule.
    De ha elmagyarázod ez miért nem igaz az én esetemben, megköszönöm!

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

Hirdetés