LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-12-2010, 11:53 AM   #16
uwa45
Member
 
Registered: Oct 2006
Location: Lagos,Nigeria
Distribution: Fedora core 3, Redhat 9.0,Centos 4.6
Posts: 43

Original Poster
Rep: Reputation: 15

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.
 
Old 04-12-2010, 01:47 PM   #17
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
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.
 
1 members found this post helpful.
Old 04-17-2010, 08:39 AM   #18
uwa45
Member
 
Registered: Oct 2006
Location: Lagos,Nigeria
Distribution: Fedora core 3, Redhat 9.0,Centos 4.6
Posts: 43

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by uwa45 View Post
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?
 
Old 04-17-2010, 01:54 PM   #19
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
now can the same be applicable to NTP. can i port forward from the firewall to the system running the NTP as well?
Yeah, the firewall doesn't know what is running on the ports it forwards, so it should work exactly the same way for all ports you want to forward.
 
Old 04-19-2010, 04:43 AM   #20
uwa45
Member
 
Registered: Oct 2006
Location: Lagos,Nigeria
Distribution: Fedora core 3, Redhat 9.0,Centos 4.6
Posts: 43

Original Poster
Rep: Reputation: 15
Thanks alot Hangdog you all have really been of great help.
 
Old 04-19-2010, 07:03 AM   #21
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Closing 2 Ports ryanlum Linux - Networking 1 07-16-2007 06:27 AM
Iptables script, and closing ports on linux box sarajevo Linux - Security 7 12-27-2006 05:06 AM
Closing Ports adssse Debian 4 12-25-2005 12:06 AM
Closing Ports Murdock1979 Linux - Security 1 09-23-2005 09:44 AM
closing ports azi Linux - Security 5 12-07-2003 09:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration