T TomT Regular Contributor Nov 7, 2014 #1 Hi I'm running Firmware:376.45 (Merlin build) on my AC 68U I'd like to block all IP Addresses to port 21 except 2 - 3 IP Addresses I allow. Is that possible ? if it is I'd then look to do the same to other ports. Thanks
Hi I'm running Firmware:376.45 (Merlin build) on my AC 68U I'd like to block all IP Addresses to port 21 except 2 - 3 IP Addresses I allow. Is that possible ? if it is I'd then look to do the same to other ports. Thanks
RMerlin Asuswrt-Merlin dev Staff member Nov 7, 2014 #2 Can't be done through the webui, has to manually be done with iptables.
T TomT Regular Contributor Nov 7, 2014 #3 Thanks for the reply. Can anyone point me in the right direction.. On how to do this. Thanks
B Boy1979 New Around Here Nov 8, 2014 #4 TomT said: Thanks for the reply. Can anyone point me in the right direction.. On how to do this. Thanks Click to expand... Hi, it is not very difficult, here for example my configaration of an SSH Port only reachable from specific IP: iptables -t nat -I VSERVER <consecutive number> -p tcp -m tcp -s <ip-Adress> --dport <alternate-port> -j DNAT --to <server-ip in network>:<listen port> e.g.: iptables -t nat -I VSERVER 2 -p tcp -m tcp -s 1.2.3.4 --dport 2223 -j DNAT --to 192.168.1.2:22 this can be put into /jffs/scripts/nat-start You can also find information about this here. If you need more help, you're welcome regards Boy1979 Last edited: Nov 8, 2014
TomT said: Thanks for the reply. Can anyone point me in the right direction.. On how to do this. Thanks Click to expand... Hi, it is not very difficult, here for example my configaration of an SSH Port only reachable from specific IP: iptables -t nat -I VSERVER <consecutive number> -p tcp -m tcp -s <ip-Adress> --dport <alternate-port> -j DNAT --to <server-ip in network>:<listen port> e.g.: iptables -t nat -I VSERVER 2 -p tcp -m tcp -s 1.2.3.4 --dport 2223 -j DNAT --to 192.168.1.2:22 this can be put into /jffs/scripts/nat-start You can also find information about this here. If you need more help, you're welcome regards Boy1979