Click here to Skip to main content
15,885,680 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Friends
I hope you are fine and doing great. Currently I am working on an interesting project that includes a hardware (Raspberry Pi) and a mobile application. The raspberry pi is configured as a local DNS server + DHCP server + router. It has two Network interfaces and one of them is facing the public internet. The other is acting as LAN. The android app connects to the device and list some content. These contents are coming from device itself. In between the content, I want to insert some internet recommendations based on the content information. To do so, I have to allow the internet through LAN but doing so will open up the internet to whole device. I want to allow the internet access to the application only. Is there any way this can be achieved. If not, please guide me so that a custom solution can be created. Thank you very much. Cheers.

What I have tried:

Till now I have studied a lot and looked at the manuals of DNS server, DHCP server and other articles etc. but have not found any pointers or direct solution.
Posted
Updated 12-Jul-17 17:34pm
v2

1 solution

look at iptables and tc
 
Share this answer
 
Comments
Er. Tushar Srivastava 13-Jul-17 3:09am    
Have looked at it already. This solution might allow me to control the flow of traffic per device (mobile phone) connected to my Pi Server (Raspberry Pi). But I want to limit the traffic to a single application (i.e. my android application)... so that I can provide internet to my application only and other applications will not be able to use internet.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900