I typed into the terminal sudo iptables -L -vĪnd I get Chain INPUT (policy DROP 0 packets, 0 bytes) pkts bytes target prot opt in out source destinationĠ 0 ACCEPT all - any any anywhere anywhere ctstate RELATED,ESTABLISHEDĠ 0 ACCEPT all - lo any anywhere anywhereĠ 0 DROP tcp - any any anywhere anywhere tcpflags: FIN,SYN,RST,ACK/SYNĠ 0 DROP udp - any any anywhere anywhereĠ 0 DROP icmp - any any anywhere anywhereĬhain FORWARD (policy DROP 0 packets, 0 bytes) pkts bytes target prot opt in out source destinationĬhain OUTPUT (policy DROP 0 packets, 0 bytes) pkts bytes target prot opt in out source destinationĠ 0 ACCEPT tcp - any any anywhere anywhere tcp spts:32768:61000 dpt:httpsĠ 0 ACCEPT udp - any any anywhere anywhere udp spts:32768:61000 dpt:domainĠ 0 ACCEPT tcp - any any anywhere anywhere tcp spts:32768:61000 dpt:httpĠ 0 ACCEPT all - any lo anywhere anywhere Running this script from the terminal as root works fine.
I've placed it in her home folder as firewall.sh and set it to be executable (right click on the file, and checking the "allow executing file as program" option in the permissions tab).
#Set yacreader to run at startup windows 10
If youre on Windows 10 or Windows Server 2012 you should be all set, but Windows 7 and Windows Server 2008 might have older versions. Iptables -I INPUT -m conntrack -ctstate ESTABLISHED,RELATED -j ACCEPT 'Start' -> (Search) 'cmd' Terminal window should appear 'powershell' Prompt should now start with 'PS 'Make sure you have PowerShell 5.0 or later installed. Iptables -I INPUT -p tcp -m tcp -syn -j DROP Iptables -I OUTPUT -p tcp -dport 443 -sport 32768:61000 -j ACCEPT Iptables -I OUTPUT -p udp -dport 53 -sport 32768:61000 -j ACCEPT Iptables -I OUTPUT -p tcp -dport 80 -sport 32768:61000 -j ACCEPT Perfect Viewer is an open-format comic-book reader that supports several DRM-free file. The script I wrote for my sister's computer contains #!/bin/sh Note: The premium Perfect View app (3) allows users to apply limited colors to black-and-white images. How can I make a firewall script run everytime she logs in without her having to type in any password? She wont be logging in as admin, just a standard account.
Setting up my sister's computer, I want to give her some basic firewall protection. From the terminal I type sudo sh firewall.sh
Depending on the app, the setting that allows it to run at Windows 10 startup might be called something like "start when I start Windows," "open automatically after you log into the computer," "launch on login" and so on.įor example, in Spotify, you have to open the app, access its Settings, go to the Advanced settings, and select "Open Spotify automatically after you log into the computer.I usually run my iptables rules whenever I login. Such examples include Skype, Spotify, or Slack, but the list goes on. Not all apps allow you to do that, but some of them do. One way to make an app launch automatically when Windows 10 starts is by configuring that app's settings. Check the settings of the app that you want to run at Windows 10 startup Do you know other methods to make an app run at startup in Windows 10?ġ.Open any app automatically at startup by adding it to the Windows 10 Startup folder Make an app load at Windows 10 startup, using the Task Manager Use the Windows 10 Settings to enable an app to run at startup