firewall

How to authenticate on 2 different symfony2 firewalls at the same time?

▼魔方 西西 提交于 2019-12-04 04:23:22
I have a Symfony application with 2 areas, one for clients accessing from a web page an other for API calls from AJAX and web services. Each one of this areas is protected with a firewall on its own. The WEB interface is authenticated with a log in form and the API with http_basic . Both firewalls work fine, but when the WEB interface makes an AJAX call to the API interface, then the browser prompts the user to log in again, even when he was already logged in (via log in form). This is what I want to avoid. I Would like that both firewalls were authenticated at the same time to prevent this

Using google maps api behind firewall

安稳与你 提交于 2019-12-04 04:02:20
问题 I have an application embedding google maps. Works fine. Some users are behind a firewall with very restricted access to the rest of the world. Does anyone know of a valid list of dns-names/ip-addresses used by the google maps api? I can see what dns-names it loads from in firebug's net panel. But it feels a bit unsafe to use just them. Is there a such list that I can add to the firewalls whitelist? ..fredrik EDIT I spoke to someone who was working at the maps-team at google. And he said that

Allow anonymous access to specific URL in Symfony firewall protected bundle

眉间皱痕 提交于 2019-12-04 03:46:10
I have a Symfony bundle which can only be accessible by using mydomain.com/box To access /box you must be logged in, however i would like to enable anonymous access into mydomain.com/box/download # Security.yml access_control: - { path: ^/box , roles: ROLE_USER} How can i do ? # security.yml access_control: - { path: ^/box/download , roles: IS_AUTHENTICATED_ANONYMOUSLY} - { path: ^/box , roles: ROLE_USER} Symfony2 firewalls are processed in order, and only first matching one will be applied. Therefore, if you put the /box/download before /box, the /box/download rule will be processed and the

Source Port vs Destination Port

♀尐吖头ヾ 提交于 2019-12-04 02:18:52
I am new to TCP/IP and trying hard to learn basics. Well, I really wonder about inbound rules and outbound rules of Firewall and concept of source adress:port, destination adress:port. For example I am investigating port 80. I know that http uses port 80. But when I try to listen the traffic I see that my browser doesn't use 80. As you see from the image only destination port 80 is used and "destination" should be the server that hosts web pages not my computer. And also there is no used port 80 on source port, "source" should be my computer. My browser uses some other ports as source and goes

How would I get started writing my own firewall?

♀尐吖头ヾ 提交于 2019-12-04 02:07:57
There is previous little on the google on this subject other than people asking this very same question. How would I get started writing my own firewall? I'm looking to write one for the windows platform but I would also be interested in this information for other operating systems too. ­­­­­­­­­­­­­­­­­­ For Windows 2000/XP there is an article with examples on CodeProject Developing Firewalls for Windows 2000/XP For Vista I think you will need to use Windows Filtering Platform This question is alarmingly similar to those asking how to write an encryption algorithm. The answers to both should

MSDTC and firewall [closed]

隐身守侯 提交于 2019-12-04 00:51:04
We are using MSDTC for SQL transactions. I am having issue with setting up firewall for MSDTC to work. The application and SQL are running on separate machine. Currently MSDTC is working if i turn off firewall on application server. I think there should be someway to add exception to the firewall setting for some ports. So that firewall can still be ON and DTC will not have any issues. I am not sure of the ports to add in firewall setting (I did try adding port 135 with no success) Have your Firewall allow port 135 and the dcom port range. By default, the dcom port range is 1024-65535. Thats a

UFW firewall is not working on Ubuntu in DigitalOcean

醉酒当歌 提交于 2019-12-03 21:10:42
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 IN Anywhere 2376/tcp ALLOW IN Anywhere 22 (v6) LIMIT IN Anywhere (v6) 2375/tcp (v6) ALLOW IN Anywhere

Bash script telnet to test multiple addresses and ports

房东的猫 提交于 2019-12-03 20:54:28
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 have netcat or expect installed.. ymonad As other stackoverflower's said, I would recommend using nmap or

Programmatically add an windows service to Windows Firewall (During Installation) [duplicate]

感情迁移 提交于 2019-12-03 20:47:07
This question already has answers here : Closed 7 years ago . Possible Duplicate: Programmatically add an application to Windows Firewall in my solution i have an windows service project and installer to install this service How i can add this service to Windows Firewall During Installation. Assuming we're using a Visual Studio Installer->Setup Project - You need an installer class like this inside an assembly that's being installed, and then make sure you add a custom action for the "Primary output" in the install phase. using System.Collections; using System.ComponentModel; using System

Capistrano, Firewalls and Tunnel

痴心易碎 提交于 2019-12-03 19:28:27
We're using Capistrano to automate pushing new versions of a PHP application to a production server. The production server (we'll call it production) is public, while our repository server (we'll call it repo) sits behind our corporate firewall, along with our own machines. Capistrano, as configured by default, won't work, as production can't talk to repo. I was wondering if there was someway I could setup capistrano to SSH to repo first, then SSH to production opening a tunnel on a port that I can then use to SSH from production back to repo to pull the changes from SCM. I just can't figure