Avatar of Vijay Kumar Gajula
Vijay Kumar Gajula

asked on 

allow ips to access server on port

Dear All,

Can any one let me know how to allow only few IPs to access a particular port on Debian server?  Other IPs should be blocked.

Thanks,
Vijay.G
Linux

Avatar of undefined
Last Comment
Raghav
Avatar of Raghav
Raghav
Flag of India image

You can use "iptables" to do this.

https://www.garron.me/en/bits/iptables-open-port-for-specific-ip.html

--Raghav.
Avatar of Vijay Kumar Gajula
Vijay Kumar Gajula

ASKER

Thanks for the response, these changes are going once i restart the server. Is there any possibility to save these rules permanently.
Please let me know.
Thanks,
Vijay
ASKER CERTIFIED SOLUTION
Avatar of Raghav
Raghav
Flag of India image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Vijay Kumar Gajula

ASKER

thanks for the solution
Avatar of Raghav
Raghav
Flag of India image

You Welcome.

--Raghav.
Linux
Linux

Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.

71K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo