port
-
2023-03-03 LinuxExport IP:PORT from random text file to the list
You can use a combination of Linux commands to filter out IP:port pairs from a text file and create a list. Assuming that the IP:port pairs in the file are separated by a space, you can use the grep command to filter out lines that match the IP:port pattern, and then use the cut command…
-
2018-09-05 LinuxIptables forwarding
root@sklepas:~# sysctl net.ipv4.ip_forward=1 root@sklepas:~# iptables -A PREROUTING -t nat -i eth0 -p udp --dport 27102 -j DNAT --to 107.161.126.115:27106 root@sklepas:~# iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 27102 -j DNAT --to 107.161.126.115:27106 root@sklepas:~# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE