How to limit specific IP to access to internal server by TP-LINK SMB router?
In some cases, we just want only some specific external IPs to access internal server behind TP-LINK SMB Router. This demands can be met by Virtual Server with Access Control.
Now we take TL-ER6120 v2 as an example. The Web server is behind TL-ER6120 LAN port as 192.168.0.2:8080. And client is located in 126.96.36.199 out of WAN1. We only want to make external IP 188.8.131.52 be able to access this server. Our topology is connected as follow.
How can we achieve that?
TL-ER6120 is NAT device. Web server is on 192.168.0.2:8080 behind TL-ER6120. First of all we open port of 8080 about 192.168.0.2 for all external IP. And then we configure Access Control to limit only IP 184.108.40.206 to access to Web server. The specific configuration steps are as follows.
This step we need to open ports of 8080. Go to Advanced---->NAT----->Virtual Server. For interface, we select WAN1 and set port as 8080. Internal Server IP is 192.168.0.2. Click OK then. When finished, there will form a rule entry in Virtual Server List.
This step we configure Service Type to match Web server port 8080. Turn to Preferences---->Service Type. Name service type as Web Service. And Select Protocol TCP/UDP. Source Port Range is 0-65535. Fill in destination port as 8080. Click OK.
This step let’s configure IP group. Turn to Preferences----->IP Group---->IP address. Add entry as above.
Access_Client is the same with Web_Server. Then there will be two new entries in IP Address List.
Turn to IP Group. Corresponds to the Address Name and Group Name. Set according to the picture respectively.
This step is simple. Match Access_Client with Access_Client Group then.
Step 4 Let’s configure Access Control now.
On Firewall---->Access Control, set as the picture above. We select Allow Policy first and choose Web_Service we just now set up for 8080 port for Service Type. In Source option, we select IP Group-- Access_Client we set before. In destination we choose Web_Server. ID as 1. Then click OK.
And then we configure a Block policy. The policy is Block and Source is IPGROUP_ANY. Don’t forget set ID as 2. Click OK.
After finishing, there will be two entries in List of Rules.
As the screenshot above, on client 220.127.116.11 we type in 18.104.22.168:8080. (22.214.171.124 is WAN1 address) We’ll find it can access Web server normally.
And on any other client like 126.96.36.199, we cannot access Web server. It works as expected!
1. The ID order of Access Control List present the priority and it is important.
2. TL-R600VPN could meet demands only with hardware version v4.
3. For other models’ different hardware versions, there will be different UI. The configuration process of different UI is the same as the example’s UI basically. Lack of IP Group configuration, other configuration options just changed position.
Your feedback helps improve this site.