firewall

Catch session timeout Symfony2

岁酱吖の 提交于 2019-12-05 12:00:33
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! you must create the listener Registering Event Listeners and Subscribers config.yml : services: mycompany.demobundle.listener.request: class:

Open Active FTP Connection From Azure VM

只谈情不闲聊 提交于 2019-12-05 11:05:50
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 this has something to do with the Azure "Endpoints", though I can't verify that and I don't know how I

How to protect my Azure web role from other people?

时光毁灭记忆、已成空白 提交于 2019-12-05 07:49:24
I have a Web role on Azure. I would like to allow only my people to access the web role. I have found post to manual/code to restrict IPs to access the role. I would like to create firewall way(something like SQL Azure's firewall) to block/allow IPs. I could not find any setting in Azure console. please help. If you publish your endpoint on the Internet through the Windows Azure load balancer, there is no option in place to define firewall rules on Azure. But you can secure access to VMs created using either Windows Azure’s Infrastructure as a Service (IaaS) technology or its Platform as a

Bash script telnet to test multiple addresses and ports

﹥>﹥吖頭↗ 提交于 2019-12-05 07:08:46
问题 I am required to test at least 130 ip addresses and ports. I am hoping to write a bash script such that it reads the ip address and ports from an input file. I have the following while read line do telnet $line >> $2 done < $1 This is a crappy code as it cannot determine whether its connected or failed, and I have to rely on its auto escape character to disconnect from a connection. How can I improvise this such that it updates $2 with the status quickly? I am working on Redhat and do not

Is it possible to write simple Firewall with Python/Scapy for Windows? [closed]

假装没事ソ 提交于 2019-12-05 06:32:46
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I'm looking to make a "small" firewall that can intercept HTTP traffic, it should then modify or drop the packet according to its ip address and the content(text) of the packet. I googled several times before I

UFW firewall is not working on Ubuntu in DigitalOcean

蹲街弑〆低调 提交于 2019-12-05 05:27:00
问题 In my DigitalOcean (DO) droplet I installed this image: Ubuntu Docker 17.12.0~ce on 16.04 (which is available on ** DO website > droplet> destroy> rebuild droplet**) , in ssh (after user configuration), I run sudo ufw default deny incoming sudo ufw default allow outgoing sudo ufw enable sudo ufw status verbose and get: Status: active Logging: on (low) Default: deny (incoming), allow (outgoing), allow (routed) New profiles: skip To Action From -- ------ ---- 22 LIMIT IN Anywhere 2375/tcp ALLOW

Paypal IPN not calling Issue

≡放荡痞女 提交于 2019-12-05 02:48:26
问题 I am having some problem regarding Paypal IPN not getting fired on one of my server. Below is the scenario. 1) I have two sites site A(old) is on server X and site B(new) on server Y.Both the sites having identical Paypal express checkout form submission and IPN code. 2) Site A is running smoothly with paypal express checkout form submission and IPN is get fired correctly. 3) But with Site B, though our form gets submitted correctly and payment is successful, IPN is not getting fired. More

Client firewall blocks all ports but 80 and 443, need away to forward requets on port 443 to SSH or HTTPS

北城余情 提交于 2019-12-04 23:49:37
问题 I am currently working at a client were they have locked down the network, except for ports 80 and 443. I need to connect to our server using SSH, but the same server also runs our website. We do not want to invest in a new server or place a second network card. I have been searching the internet for away to setup our linux server (running CentOS 5), so that there is a daemon listening on port 443 that depending on the client protocol forwards the request to the correct internal port (SSH 22

OAuth on a webapp behind a firewall — is it possible?

我只是一个虾纸丫 提交于 2019-12-04 23:20:38
问题 I'm trying to construct a webapp to add events to an employee's google calendar and would like to use OAuth for authentication. However, my webapp is forced to be on an intranet behind a firewall; the server has outbound internet access, but blocks in-bound access if you aren't on the intranet or VPNing into the intranet. I'm reading up on OAuth, but can't figure out if part of the authentication-handshaking process would be blocked by my firewall. (And I'd like to know if its possible before

How can I block some special User-agents Via IPTables

本秂侑毒 提交于 2019-12-04 19:40:20
I need to block packets from any source that includes some special User agents using IPTables. But I don’t want to manage it via .htaccess or Apache. Is there any way? user880414 You can do it like this: iptables -A INPUT -p tcp --dport 80 -m string --algo bm --string "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)" -j DROP Short answer: No. Long answer: You could try something using the string match with iptables (see iptables -m string -h ). However, the clients would still be able to connect to your server, the only thing you could do is interrupt the connection in the middle of the