Hi.
I'm from Ecuador, my English is not very good. I hope you understand.
These are the general details of my configuration:
normal vlan 172.16.148.0/24
isolation vlan 172.16.153.0/24
registration vlan 172.16.158.0/24
The pf server have the interfaces:
eth0: 172.16.148.181/24
eth1: 172.16.153.1/24
eth2: 172.16.158.1/24
The interfaces are physical, each assigned to a port on the swtich Cisco 2960.
The problem: I have a proxy server running on another computer, to test the
proxy-bypass addon I install secondary proxy server on the PF server. The addon
works improperly. This addon redirects to the captive portal, but it takes the
IP address 172.16.158.1 instead of taking the node address 172.16.158.253. I do
not know if this is normal. I register with the address 172.16.158.1.
Upon completion in packetfence.log shows:
Jul
19 15:59:53 redir.cgi(0) INFO: 00:e0:4c:1b:ae:97 being redirected
(ModPerl::ROOT::ModPerl::PerlRun::usr_local_pf_cgi_2dbin_redir_2ecgi::handler)
Jul
19 15:59:53 redir.cgi(0) INFO: 00:e0:4c:1b:ae:97 already registered or
registration disabled, freeing mac
(ModPerl::ROOT::ModPerl::PerlRun::usr_local_pf_cgi_2dbin_redir_2ecgi::handler)
Jul
19 15:59:53 redir.cgi(0) INFO: redirecting to
http://www.packetfence.org/
(ModPerl::ROOT::ModPerl::PerlRun::usr_local_pf_cgi_2dbin_redir_2ecgi::handler)
But I can surf the internet. The firefox browser displays the following message:
"The page is not redirecting properly."
And the node continues with the address 172.16.158.253, is in the vlan
registration. If I do not use the secondary proxy server. PF is working
properly.
This is the configuration of the secondary proxy server:
#
# Recommended minimum configuration:
#
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
#acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
#acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
#acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl localnet src 172.16.148.0/24 # normal network
acl localnet src 172.16.153.0/24 # isolation network
acl localnet src 172.16.158.0/24 # registration network
acl localnet src fc00::/7 # RFC 4193 local private network range
acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged)
machines
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
#
# Recommended minimum Access Permission configuration:
#
# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access deny manager
# Deny requests to certain unsafe ports
http_access deny !Safe_ports
# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports
# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the only
# one who can access services on "localhost" is a local user
#http_access deny to_localhost
#
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#
# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed
http_access allow localhost
http_access allow localnet
# And finally deny all other access to this proxy
http_access deny all
# Squid normally listens to port 3128
http_port 3128 ssl-bump cert=/usr/local/pf/conf/ssl/server.pem
ssl_bump allow all
# Bumped requests have relative URLs so Squid has to use reverse proxy
# or accelerator code. By default, that code denies direct forwarding.
# The need for this option may disappear in the future.
always_direct allow all
# we allow cert errors because of the nature of what we are trying to do
sslproxy_cert_error allow all
# we allow bad CN names because of the nature of what we are trying to do
acl BadSite ssl_error SQUID_X509_V_ERR_DOMAIN_MISMATCH
sslproxy_cert_error allow BadSite
sslproxy_cert_error deny all
# URL Redirectors
# Rewrites ANY non-Captive Portal request to a Captive Portal request
url_rewrite_program
/usr/local/pf/addons/captive-portal/proxy-bypass/squid-redirector.pl
url_rewrite_concurrency 10
# We recommend you to use at least the following line.
hierarchy_stoplist cgi-bin ?
# Uncomment and adjust the following to add a disk cache directory.
#cache_dir ufs /usr/local/squid/var/cache 100 16 256
# Leave coredumps in the first cache dir
coredump_dir /usr/local/squid/var/cache
# Add any of your own refresh_pattern entries above these.
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
#hierarchy squid
cache_peer 172.16.148.1 parent 3128 3130 no-query default
never_direct allow all
Thanks for the help.
Btw:
I need to configure the ports that connect swicth to eth0, eth1, eth2 with port
security.
------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
Packetfence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users