Re: [mapserver-users] RE ows_allowed_ip_list / ows_denied_ip_list not working
Since *_ip_list supports ranges using CIDR notation, you might use Ows_denied_ip_list 0.0.0.0/0 But instead of blocking _all_ IPs you should probably disable requests to this layer or service using ows_enable_request !* -Ursprüngliche Nachricht- Von: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users- boun...@lists.osgeo.org] Im Auftrag von Vladimiro Bellini Gesendet: Donnerstag, 23. April 2015 16:29 An: steve.toutant Cc: mapserver-users; mapserver-users-bounces Betreff: Re: [mapserver-users] RE ows_allowed_ip_list / ows_denied_ip_list not working checking my access_log did the job for denied specific ip (i was using a wrong public ip). but it didnt worked for * neither all but hey, specific ip works for me. Thanks!! :) Vladimiro Bellini __ \ /| _ _|. _ . _ |__) _||. _ . 2015-04-23 11:22 GMT-03:00 steve.tout...@inspq.qc.ca: Anything in your mapserver log? perhaps there is another problem in your mapfile Vladimiro Bellini vlasvlasv...@gmail.com 2015-04-23 10:06 A steve.tout...@inspq.qc.ca cc mapserver-users mapserver-users@lists.osgeo.org, mapserver-users- boun...@lists.osgeo.org Objet Re: RE [mapserver-users] ows_allowed_ip_list / ows_denied_ip_list not working Hi, i tried all and my ip, but i got the same result.. what could it be? here's my full metadata (header metadata of mapfile, not in layers) METADATA ows_denied_ip_list all wms_service_onlineresource http:///cgi- bin/mapserv6?map=//mapase.map http:///cgi- bin/mapserv6?map=//mapase.map ows_onlineresource http:///cgi- bin/mapserv6?map=//mapase.map http:///cgi- bin/mapserv6?map=//mapase.map wms_title Mapa wms_abstract Capas wms_srs EPSG:4326 EPSG:900913 EPSG:3857 EPSG:4694 EPSG:4928 EPSG:4929 EPSG:22181 EPSG:22182 EPSG:22183 EPSG:22184 EPSG:22185 EPSG:22186 EPSG:22187 wms_onlineresource http:///cgi- bin/mapserv6?map=//mapase.map http:///cgi- bin/mapserv6?map=//mapase.map wms_enable_request GetCapabilities GetMap GetLegendGraphic GetFeatureInfo wfs_enable_request !* wms_server_version 1.1.1 wms_feature_info_mime_type text/html wms_include_items all gml_include_items all wms_contactelectronicmailaddress x...@.xxx.xx END and here's my layer metadata: METADATA wms_title Concesiones de Distribuidoras electricas wms_extent -73,566078 -55,057765 -53,635586 -21,778191 gml_include_items all gml_featureid gid wms_feature_info_mime_type text/html wms_server_version 1.1.1 wms_include_items all wms_srs EPSG:4326 END is there any other problem? i can still see my png when i do a GetMap request.. :( thanks a lot. Vladimiro. Vladimiro Bellini __ \ /| _ _|. _ . _ |__) _||. _ . 2015-04-23 10:37 GMT-03:00 steve.tout...@inspq.qc.ca mailto:steve.tout...@inspq.qc.ca : Does this works ows_denied_ip_list all or ows_denied_ip_list youripaddress Vladimiro Bellini vlasvlasv...@gmail.com mailto:vlasvlasv...@gmail.com @lists.osgeo.org http://lists.osgeo.org/ Envoyé par : mapserver-users-boun...@lists.osgeo.org mailto:mapserver- users-boun...@lists.osgeo.org 2015-04-23 09:33 A mapserver-users@lists.osgeo.org mailto:mapserver-users@lists.osgeo.org cc Objet [mapserver-users] ows_allowed_ip_list / ows_denied_ip_list not working Hi. i was testing ows_denied_ip_list or allowed ip list on my 6.4.1 mapserver and it does not work at all. ./mapserv -v MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE METADATA #inside top mapfile metadata ows_denied_ip_list * #(other metadata..) END even blocking * (all ip's) it doesnt work, i always receive a GetMap response using wms .. i can still see my request (cgi-bin,wms,getmap, see the full png, no denied at all...) why? :S Thanks, Vladimiro Bellini___ mapserver-users mailing list mapserver-users@lists.osgeo.org mailto:mapserver- us...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] ows_allowed_ip_list / ows_denied_ip_list not working
Can you point us to where you saw in the docs that '*' was a valid entry for an ip list ? -- thomas On 23 April 2015 at 15:14, vladimirbellini vlasvlasv...@gmail.com wrote: Hi. i was testing ows_denied_ip_list or allowed ip list on my 6.4.1 mapserver and it does not work at all. ./mapserv -v MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE METADATA #inside top mapfile metadata ows_denied_ip_list * #(other metadata..) END even blocking * (all ip's) it doesnt work, i always receive a GetMap response using wms .. i can still see my request (cgi-bin,wms,getmap, see the full png, no denied at all...) why? :S http://osgeo-org.1560.x6.nabble.com/file/n5202661/8d9c16d4-e8f3-11e4-92c0-a3c862cac09f.jpg Thanks, Vladimiro Bellini -- View this message in context: http://osgeo-org.1560.x6.nabble.com/ows-allowed-ip-list-ows-denied-ip-list-not-working-tp5202661.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] KML Multigeometry
Hi, Need help!! I have a kml with multigeometry placemark in it as shown below. Also I have create a map file corresponding to this kml as shown. I am unable to view the data on map, there is no error coming. Please let me know what wrong i am doing. MAP - LAYER GROUP default NAME layer0 DATA SELECT * FROM 'TestFolder' WHERE FID=0 AND OGR_GEOMETRY='LINESTRING' METADATA wms_title Layer_0 gml_geometries geom gml_include_items all wms_include_items all wms_feature_info_mime_type text/plain gml_geom_type line END STATUS DEFAULT TEMPLATE queryable TYPE LINE CONNECTIONTYPE OGR CONNECTION test.kml CLASS NAME class STYLE WIDTH 10 COLOR 0 0 255 END #style end END #class end END #layerend END KML -- ?xml version=1.0 encoding=UTF-8? kml xmlns=http://www.opengis.net/kml/2.2; xmlns:gx= http://www.google.com/kml/ext/2.2; xmlns:kml=http://www.opengis.net/kml/2.2; xmlns:atom=http://www.w3.org/2005/Atom; Document Folder nameTestFolder/name Placemark nameSF Marina Harbor Master/name visibility0/visibility MultiGeometry LineString !-- north wall -- coordinates -71.460218,42.901764,1 -71.460193,42.901815,1 -71.460095,42.902058,1 -71.460027,42.902381,1 -71.460009,42.902723,1 -71.460016,42.903507,1 -71.459988,42.904164,1 -71.459951,42.904524,1 -71.4598540001,42.905083,1 -71.459458,42.906672,1 -71.459121,42.907851,1 -71.4588410001,42.908847,1 -71.4587630001,42.909122,1 /coordinates /LineString LineString !-- south wall -- coordinates -122.4425509770566,37.80662588061205,0 -122.4428340530617,37.8065999493009,0 /coordinates /LineString Point coordinates-122.4428340530617,37.8065999493009,0/coordinates /Point /MultiGeometry /Placemark /Folder /Document /kml Thanks! -- *Alok Mathur* ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users