/srv/irclogs.ubuntu.com/2022/03/13/#ubuntu-server.txt

=== polymorp- is now known as polymorphic
=== keithzg_ is now known as keithzg
=== MJCDzZz is now known as M_J__C___D
=== M_J__C___D is now known as H1_R0LL3R
=== H1_R0LL3R is now known as MJCD
=== MJCD is now known as TehF00l
=== TehF00l is now known as MJCD
hellerhey guys, can you help me with simple IPTABLES question?21:40
hellerhttps://pastebin.com/X9xkLL8Y what is the first line for?21:41
sdezielheller: it allows forwarding new and existing TCP connections to 192.168.1.200 on port 808021:45
hellerbut i can do port forward with only one of them21:46
hellerthe second line gives me port access to that ip port 2222 -> 2221:46
heller(changing the ports ofc)21:46
sdezielheller: hard to tell without the full ruleset but the DNAT rule also needs a corresponding FORWARD rule, normally21:47
hellerhttps://pastebin.com/QyXW6pBb better example21:49
hellerso by just adding the nat rule, i can access the 172.20.0.10 ip21:50

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!