Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
02-28-2006, 06:05 PM
|
#1
|
Senior Member
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623
Rep:
|
allow access from external using iptables
hi
I have a Webserver / DNS with Debian Sarge
howto allow access to HTTP, FTP, DNS & SSH from outside (external) for anyone using iptables ?
external interface is eth0
greetings
cccc
Last edited by cccc; 02-28-2006 at 06:15 PM.
|
|
|
02-28-2006, 06:15 PM
|
#2
|
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094
|
If you have a gui, use fwbuilder.
If not, check out http://aboutdebian.com/firewall.htm
|
|
|
02-28-2006, 06:16 PM
|
#3
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
Quote:
Originally Posted by cccc
howto allow access to HTTP, FTP, DNS & SSH from outside (external) for anyone using iptables ?
|
you'll need rules for TCP ports 80 (HTTP), 21 (FTP), and 22 (SSH), as well as UDP port 53 (DNS)...
Last edited by win32sux; 02-28-2006 at 08:03 PM.
|
|
|
02-28-2006, 06:47 PM
|
#4
|
Senior Member
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623
Original Poster
Rep:
|
thanks, but knows someone any script to show all current iptables roules ?
|
|
|
02-28-2006, 08:05 PM
|
#5
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
Quote:
Originally Posted by cccc
thanks, but knows someone any script to show all current iptables roules ?
|
for the main chains: for the NAT table: etc...
|
|
|
All times are GMT -5. The time now is 11:12 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|