firewall

What open ports are required on firewall to allow for salt-stack remote execution?

强颜欢笑 提交于 2019-12-07 09:05:55
问题 The documentation on saltstack appears to be unclear regarding what ports are required from the salt-master -> salt-minion (apparently none are required). It suggests that ports only need to be opened from the salt-minion -> salt-master. (See: http://docs.saltstack.com/en/latest/topics/tutorials/firewall.html) If however commands are executed remotely on the salt-master targeted to a minion, surely the master needs to be able to push this into the minion and therefore require a network

New Azure portal (no End Points) how to connect to VM with RDP from behind a firewall

六眼飞鱼酱① 提交于 2019-12-07 09:00:58
问题 I've created a VM (non-classic, using Resource Manager) in new Azure portal but I need to connect from behind a firewall. I've found a bunch of articles explaining how to solve it by editing an Endpoint settings for RDP, but in the new portal there is nothing like this! Inbound and Outbound rules are just firewall rules as I understand and it gives nothing. I've connected to it from home and tried to change RDP listening port to something not blocked by firewall with following power shell

Open Active FTP Connection From Azure VM

蹲街弑〆低调 提交于 2019-12-07 06:43:18
问题 I'm attempting to connect to a remote FTP server with an Active connection from an Azure VM. The error I'm getting is Illegal PORT command. I have no issues connecting to other FTP sites using Passive connections, but this FTP server only supports Active. My question is basically the same as this question, except that my issue is NOT caused by the Windows Firewall. I verified this by turning the firewall off for a few seconds and re-attempting the connection, with no luck. My theory is that

Catch session timeout Symfony2

拈花ヽ惹草 提交于 2019-12-07 04:54:26
问题 I have a question about Symfony2 and I hope someone can help me out. Where does Symfony checks the users session and what to do is there is no session. Like redirect to the login page. I found some similar question, but not really what I mean. Why do I want to know it? If there is a session timeout. I want to check if the call is a XmlHttpRequest. If so, I want to return a JSON so the javascript can handle it. If notn do it the normal way. Thanks! 回答1: you must create the listener Registering

Elasticsearch clustering behind UFW firewall

给你一囗甜甜゛ 提交于 2019-12-07 03:46:13
问题 I have an Elasticsearch cluster running on two different Digital Ocean droplets. They are both set up for private networking, an I have a Mongo DB replica set running just fine with UFW rules set up to only accept connections on the relevant ports from the droplets' specific (private) IP addresses. However I am not able to get a green Elasticsearch cluster health using the same method, only yellow. This means that the nodes are not able to connect to each other. In elasaticsearch.yml (on both

Programmatically Add Exception to windows vista firewall

百般思念 提交于 2019-12-07 03:45:29
Is there any way to programmatically add an .exe file to the exception list for the Windows Vista firewall to allow it to run normally? I'm using VC++. Yes - if you take a look at the WindowsFirewallAddApp method here , it should give you some ideas how to do it. I don't know for certain about the Vista firewall, but I would defeinitely excpect that it is a violation of the security of any computer to allow programmatic access to firewall exception lists. I would be very surprised if Windows allowed arbitrary code to fiddle with the Firewall in this way. The user sitting in front of the

Windows 10 | regedit | exefile shell command (firewall add rule) - not running

夙愿已清 提交于 2019-12-06 19:43:27
Definitions: using windows 10/64bit firewall is blocking all in/out traffic - except added rules (allow in/out) actual user-account is administrator tested with all user-account-control (uac) settings: from always to never Problem: I have a script that worked fine with windows 7/64 bit, it adds right-click context menu items to .exe files, to add a firewall rule for them: Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\exefile\shell] [HKEY_CLASSES_ROOT\exefile\shell\FirewallAllowIncoming] [HKEY_CLASSES_ROOT\exefile\shell\FirewallAllowIncoming\command] @="netsh advfirewall firewall add

How could one create a firewall app in Android?

筅森魡賤 提交于 2019-12-06 14:05:04
问题 I'm building a parental control app that blocks access to certain sites - aka a simple firewall for Android. What do you think the simplest method of doing this would be? I've seen other applications use VpnService to monitor the traffic - but I'm looking for any and all suggestions, methods and ideas related to this subject. Thus far I've built the UI for the application - it stores all the user data necessary for each user profile - now it's time to make it function and block some traffic

Iptables remove specific rules by comment

旧巷老猫 提交于 2019-12-06 12:55:56
I need to delete some rules with same comment. For example I have rules with comment = "test it", so i can get list of them like this: sudo iptables -t nat -L | grep 'test it' But how can i delete all PREROUTING rules with comment 'test it'? UPD: As @hek2mgl said, i can do something like this: sudo bash -c "iptables-save > iptables.backup" sed -i '/PREROUTING.*--comment.* "test it"/d' iptables.backup sudo iptables-restore < iptables.backup sudo rm iptables.backup But between save and restore could be changes in iptables, so after restore there will be problems =/ You can use the following

How to remotely update azure SQL firewall with local IP via powershell or C#

早过忘川 提交于 2019-12-06 11:29:02
问题 How can I remotely update my azure SQL firewall with my local PCs IP address for administration either via powershell or C#. I have had a look over the documentation but I can only find out how to do it from the actual server itself, not remotely. I can get visual studio to pop up and ask me if I want to add my IP address to the firewall randomly, but most the time it simply fails and does not ask me so I am looking for a solution other than manually logging into the azure portal whenever my