IP-tables, anteckningar fr kurs: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

11 May 2026

6 October 2023

  • curprev 19:5019:50, 6 October 2023 Linuxwiki>Wikiadmin 782 bytes +202 No edit summary
  • curprev 18:4818:48, 6 October 2023 Linuxwiki>Wikiadmin 580 bytes +580 Skapade sidan med '== IP-tables == Anteckningar från Linuxkurs på Global Knowledge. === Masquerading === För dynamisk IP: iptables -t nat POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE. För statisk IP: iptables -t nat POSTROUTING -s 192.168.0.0/24 -o eth0 -l SNAT --to 1.2.3.4 (osäker på bokstaven för SNAT, kan vara stort I). === Säkerhet === Det säkraste och svåraste är att sätta upp default DROP '''-p INPUT DROP''' '''-p OUTPUT DROP''' '''-p FORWARD DROP''' Aktiver...'