-
Notifications
You must be signed in to change notification settings - Fork 636
How to enable IP filter for Ant Media Servers behind load balancer in AWS?
Murat Ugur Eminoglu edited this page May 17, 2022
·
6 revisions
Attention: We have migrated our documentation to our new platform, Ant Media Resources. Please follow this link for the latest and up-to-date documentation.
NOTE: This doc is added in FAQ section.
How to enable IP filter for Ant Media Servers behind load balancer in AWS?
- Edit the following file with a text editor.
vim /usr/local/antmedia/conf/jee-container.xml
- Find the line as follow.
<bean id="valve.access" class="org.apache.catalina.valves.AccessLogValve">
And add the following line before it.
<bean id="valve.access" class="org.apache.catalina.valves.RemoteIpValve" />
- Find another line as follow.
<property name="rotatable" value="true" />
and add the following line before it.
<property name="requestAttributesEnabled" value="true" />
- After adding these lines, restart Ant Media Server with the following terminal command.
systemctl restart antmedia
The last edited version of the file will look like the following.
<bean id="valve.access" class="org.apache.catalina.valves.RemoteIpValve" />
<bean id="valve.access" class="org.apache.catalina.valves.AccessLogValve">
<property name="directory" value="log" />
<property name="prefix" value="${http.host}_access" />
<property name="suffix" value=".log" />
<property name="pattern" value="common" />
<property name="rotatable" value="true" />
<property name="requestAttributesEnabled" value="true" />
Now, You can use the IP filter.
- Introduction
- Quick Start
- Installation
- Publishing Live Streams
- Playing Live Streams
- Conference Call
- Peer to Peer Call
- Adaptive Bitrate(Multi-Bitrate) Streaming
- Data Channel
- Video on Demand Streaming
- Simulcasting to Social Media Channels
- Clustering & Scaling
- Monitor Ant Media Servers with Apache Kafka and Grafana
- WebRTC SDKs
- Security
- Integration with your Project
- Advanced
- WebRTC Load Testing
- TURN Servers
- AWS Wavelength Deployment
- Multi-Tenancy Support
- Monitor Ant Media Server with Datadog
- Clustering in Alibaba
- Playlist
- Kubernetes
- Time based One Time Password
- Kubernetes Autoscaling
- Kubernetes Ingress
- How to Install Ant Media Server on EKS
- Release Tests
- Spaceport Volumetric Video
- WebRTC Viewers Info
- Webhook Authentication for Publishing Streams
- Recording Streams
- How to Update Ant Media Server with Cloudformation
- How to Install Ant Media Server on GKE
- Ant Media Server on Docker Swarm
- Developer Quick Start
- Recording HLS, MP4 and how to recover
- Re-streaming update
- Git Branching
- UML Diagrams