firewall

Why does Tomcat work with port 8080 but not 80?

我的梦境 提交于 2019-11-28 06:55:25
I have started and tested Tomcat under Port 8080 (default). Now I altered the connector port to 80 and restarted Tomcat, nothing will show on my minimal Debian 6.0 installation. Now where is the trick here? <Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000" URIEncoding="UTF-8" redirectPort="8443" /> Dominik go to /etc/default/tomcat6 and change #AUTHBIND=no to AUTHBIND=yes # If you run Tomcat on port numbers that are all higher than 1023, then you # do not need authbind. It is used for binding Tomcat to lower port numbers. # NOTE: authbind works only with IPv4. Do not enable it

Getting error while trying to push to Heroku

最后都变了- 提交于 2019-11-28 06:50:59
问题 When I type in "git push heroku master" I get an error that says: ssh: Could not resolve hostname heroku.com: nodename nor servname provided, or not known I am on my computer at work and I believe this problem has to do with proxies/firewall. Does anybody know of a way around this error in the command line? Or any other type of fix? Thanks. 回答1: try ssh'ing directly to heroku from your command line ssh git@heroku.com -T if you don't get a response ! You can only access Heroku by ssh via git

Outbound port open on firewall, how to unblock for PHP?

余生长醉 提交于 2019-11-28 06:50:22
问题 The goal is to send outbound email from my shared host to Mandrill via SMTP using PHP and I have full cooperation with the host sys admins. Current situation: ✅ PHP can connect to smtp.mandrillapp.com port 443 (used for HTTPS) ❌ PHP cannot connect to smtp.mandrillapp.com port 587 (used for SMTP) ✅ PHP can connect to portquiz.net port 443 (used for HTTPS) ❌ PHP cannot connect to portquiz.net port 587 (used for SMTP) ✅ Telnet can connect to smtp.mandrillapp.com port 443 ✅ Telnet can connect to

C# - How to chceck if external firewall is enabled?

我怕爱的太早我们不能终老 提交于 2019-11-28 06:19:26
问题 We want to use Cisco NAC and need to check if client Desktop has a firewall installed. This may be not the default Windows Firewall. Is there some Windows registry key that can be checked? 回答1: For non-Windows firewalls, you can use WMI API to detect the presence of a firewall if it's registered with Windows. Namespace = "Root\SecurityCenter2" (might be "Root\SecurityCenter" on pre-vista) Query = "SELECT * From FirewallProduct" And you can use this little gem to detect if it's actually on or

How do I get the Mac OS X Firewall to permanently allow my iOS app?

无人久伴 提交于 2019-11-28 06:15:57
I'm writing an iOS app that acts as, among other things, a telnet server. Naturally, it begins listening for connections as soon as it starts. When I run the app in the Simulator, Mac OS X (I happen to be on 10.7.3) prompts me to Allow or Deny my application to accept incoming network connections. This is the standard Firewall message that Mac OS X uses for all unsigned, networked applications. I grow weary of clicking "Allow" fifty or more times a day, and so I seek a way of permanently adding my app to the Firewall's list of permitted apps. I've tried the following. Open Activity Monitor

FOSUserBundle - How to redirect already logged-in users when trying to access the login_path

孤人 提交于 2019-11-28 04:52:50
问题 Is it possible to perform an automatic redirect to the some route (i.e. /) for the specific route /login only for users that are AUTHENTICATED ? and How? I'm using FOSUserBundle. This is my security configuration: security: encoders: FOS\UserBundle\Model\UserInterface: sha512 role_hierarchy: ROLE_ADMIN: ROLE_USER ROLE_SUPER_ADMIN: ROLE_ADMIN providers: fos_userbundle: id: fos_user.user_provider.username_email firewalls: main: pattern: ^/ form_login: provider: fos_userbundle csrf_provider:

iptables block access to port 8000 except from IP address

ぐ巨炮叔叔 提交于 2019-11-28 02:53:40
I've never used iptables, and the documentation online seems a bit opaque. I'd like to block all requests to port 8000 on my server except those coming from a specific IP address. How do I do that using iptables? This question should be on Server Fault . Nevertheless, the following should do the trick, assuming you're talking about TCP and the IP you want to allow is 1.2.3.4: iptables -A INPUT -p tcp --dport 8000 -s 1.2.3.4 -j ACCEPT iptables -A INPUT -p tcp --dport 8000 -j DROP HRgiger Another alternative is; sudo iptables -A INPUT -p tcp --dport 8000 -s ! 1.2.3.4 -j DROP I had similar issue

Automating Windows Firewall with

假装没事ソ 提交于 2019-11-27 20:53:07
问题 I have C# Application that uses PORT 777 for asynchronous communication and PORT 3306 for communication with My Sql Server. Problems arise when the ports is blocked by a firewall. I tried to create a program to add an exception in the firewall list of Windows 7. When i run the program, i get bug as follow: "Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))". I do not understand what these errors mean, any suggestion is welcome, Thanks. protected internal void

Adding an application firewall rule to both private and public networks via win7 FirewallAPI

我是研究僧i 提交于 2019-11-27 16:50:48
问题 A little background: Basicaly I'd like to add a program firewall access rule to both private and public networks. I used to use this- "netsh firewall add allowedprogram program= "Path.." name=AppName ENABLE scope=ALL profile=CURRENT" But now I'd like to automate the proccess a little using a COM object. Found this shiny piece of code - http://web.archive.org/web/20070707110141/http://www.dot.net.nz/Default.aspx?tabid=42&mid=404&ctl=Details&ItemID=8 And after implementing the class I've been

Programmatically add IP to Server 2008 firewall rule

大憨熊 提交于 2019-11-27 15:10:03
问题 Anybody know how to programmatically add an IP address to a Server 2008 Windows Firewall with Advanced Security rule? i.e. I've setup a Block Action firewall rule which has some IP addresses listed under the "Remote IP address" section of the Scope. I want to be able to programmatically add (or perhaps remove) IP addresses from this list. Are there .NET objects available to do this? 回答1: The Windows Firewall with Advanced Security Start Page can be found at: http://msdn.microsoft.com/en-us