Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi guys thanks for your post. but would some one please send me a detailed coding to accomplish this.this is what i want. to close all conections to the system except for some system whose addresses would be given.(pls use fetitious adresses i will understand),to change the default ssh port from 22 to 7777, to open port 80 for http, 100-200 for ntp and also 5555 udp to send data to wwlln.i have done extensive research on this and though it seem quite simple enough, i dont want to make any misstake on this.
Again assuming this box is behind a firewall how can the needed traffice be directed to it.
scripts can be sent to uwa_101@hotmail.com
Thanks.
To be honest, you've been shown everything you need to do in order to do this yourself. If you're concerned about mistakes, why don't you write your own rules and post them here (obviously with false IP addresses). I'm sure people will be glad to look over your work and point out any problems.
Hi,
am about to have a system on the internet with a dedicated public ip address. i want all ports and services closed except the following ports and services.
port 22 or 7777 for tcp/ip for ssh
80 for http
100-200 for NTP
5555 for udp
How do i go about this using iptables? thanks.
Hi, okay i totally understand all about ssh now and i want to say this.
my setup is gonna be behind a firewall. clarkconnect to be precise and i know all i need to do to allow connection to the linux box running ssh is to do a port forwarding. now can the same be applicable to NTP. can i port forward from the firewall to the system running the NTP as well?
I'm glad I could help. And the offer still stands, if you need a review of iptables rules, post them here and I'm sure you'll get plenty of suggestions.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.