Skip to content

Instantly share code, notes, and snippets.

@masterjeef
masterjeef / remove-windows10-crap.ps1
Last active June 26, 2023 08:10
Remove Windows 10 Crap
<#
This is a helpful script that will remove the default Windows 10 garbage from your computer
* Comment out any apps that you might want to keep
* Don't forget to run as admin
#>
# 3d Builder
@tomasinouk
tomasinouk / snat_dnat_advantech.md
Last active October 1, 2024 09:00
examples of SNAT, DNAT with iptables for Advantech, Conel routers, with comments (probably will work on other routers where iptables can be manipulated, care needs to be taken on applying these commands after reboot).

Some examples of SNAT, DNAT with iptables with comments

mainly used in start-up script

How to test 'safely'

When we play with iptables aka firewall we might end up in situation, where we execute rule, which has unforseen impact - lock yourself out. Recovering from this situation is necessity.

How to:

  • Enable reboot via SMS.
  • Test all commands in shell first before putting them into Start-up script. This way the command will be wiped out, when unit is rebooted.

masquarade all outgoing packets to be WLAN0 IP