nixCraft Linux / UNIX / Shell Scripting Forum

nixCraft

Linux / UNIX Tech Support Forum

webmin ubuntu server firewall

This is a discussion on webmin ubuntu server firewall within the Networking, Firewalls and Security forums, part of the Mastering Servers category; hi nix i want webmin firewall configuration for cloud karmic server... i tried but its blocking ssh after sometime... i ...


Register free or login to your account to remove all advertisements.

Go Back   nixCraft Linux / UNIX / Shell Scripting Forum > Mastering Servers > Networking, Firewalls and Security

Linux answers from nixCraft.


Networking, Firewalls and Security No it's not a secret. Talk about firewalls and security issues.

Reply

 

Thread Tools Display Modes
  #1 (permalink)  
Old 19th March 2010, 12:02 PM
savin's Avatar
Junior Member
 
Join Date: Mar 2010
OS: ubuntu
Posts: 22
Thanks: 4
Thanked 0 Times in 0 Posts
Rep Power: 0
savin is on a distinguished road
Default webmin ubuntu server firewall

hi nix i want webmin firewall configuration for cloud karmic server... i tried but its blocking ssh after sometime... i dont know how to giv priority to every rules...kindly help on this.... thanks...
Reply With Quote
  #2 (permalink)  
Old 19th March 2010, 02:39 PM
rockdalinux's Avatar
Is that all you got?
 
Join Date: May 2005
Location: Planet Vegeta
OS: Redhat
Posts: 823
Thanks: 21
Thanked 37 Times in 32 Posts
Rep Power: 12
rockdalinux is a splendid one to beholdrockdalinux is a splendid one to beholdrockdalinux is a splendid one to beholdrockdalinux is a splendid one to beholdrockdalinux is a splendid one to beholdrockdalinux is a splendid one to behold
Default

Can you post your firewall configuration or rules?
__________________
Rocky Jr.
What's wrong? I hope I am not making you uncomfortable...

Never send a boy to do a mans job.
Reply With Quote
  #3 (permalink)  
Old 19th March 2010, 03:55 PM
savin's Avatar
Junior Member
 
Join Date: Mar 2010
OS: ubuntu
Posts: 22
Thanks: 4
Thanked 0 Times in 0 Posts
Rep Power: 0
savin is on a distinguished road
Default iptable

this s my /etc/iptables.rules


*mangle
:PREROUTING ACCEPT [590:57769]
:INPUT ACCEPT [590:57769]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [454:239158]
:POSTROUTING ACCEPT [454:239158]
COMMIT
# Completed on Thu Mar 18 18:05:48 2010
# Generated by iptables-save v1.4.4 on Thu Mar 18 18:05:48 2010
*nat
:PREROUTING ACCEPT [16:960]
:POSTROUTING ACCEPT [1:76]
:OUTPUT ACCEPT [1:76]
COMMIT
# Completed on Thu Mar 18 18:05:48 2010
# Generated by iptables-save v1.4.4 on Thu Mar 18 18:05:48 2010
*filter
:INPUT DROP [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [1213:1188899]
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 10000 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 389 -j ACCEPT
-A INPUT -i eth2 -j ACCEPT
-A INPUT -p tcp -m tcp -m multiport --dports 21,110,139,143,445,993,995 -j ACCEPT
-A INPUT -p tcp -m tcp --tcp-flags ACK ACK -j ACCEPT
-A INPUT -m state --state ESTABLISHED -j ACCEPT
-A INPUT -m state --state RELATED -j ACCEPT
-A INPUT -p udp -m udp --sport 53 --dport 1024:65535 -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 0 -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 3 -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 4 -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 11 -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 12 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 113 -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 2049:2050 -j DROP
-A INPUT -p tcp -m tcp --dport 6000:6063 -j DROP
-A INPUT -p tcp -m tcp --dport 7000:7010 -j DROP
-A INPUT -p tcp -m tcp --dport 1024:65535 -j ACCEPT
COMMIT
Reply With Quote
  #4 (permalink)  
Old 19th March 2010, 03:57 PM
savin's Avatar
Junior Member
 
Join Date: Mar 2010
OS: ubuntu
Posts: 22
Thanks: 4
Thanked 0 Times in 0 Posts
Rep Power: 0
savin is on a distinguished road
Default /etc/iptables.up.rules

tis s my /etc/iptables.up.rules

*nat
:PREROUTING ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
COMMIT
# Completed on Thu Mar 18 11:18:45 2010
# Generated by iptables-save v1.4.4 on Thu Mar 18 11:18:45 2010
*mangle
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
COMMIT
# Completed on Thu Mar 18 11:18:45 2010
# Generated by iptables-save v1.4.4 on Thu Mar 18 11:18:45 2010
*filter
:FORWARD ACCEPT [0:0]
:INPUT DROP [0:0]
:OUTPUT ACCEPT [0:0]
COMMIT
Reply With Quote
  #5 (permalink)  
Old 19th March 2010, 04:08 PM
savin's Avatar
Junior Member
 
Join Date: Mar 2010
OS: ubuntu
Posts: 22
Thanks: 4
Thanked 0 Times in 0 Posts
Rep Power: 0
savin is on a distinguished road
Default

wat exactly happening is .. now am not able to change,flush,revert back...
if am doin these things my ssh connection and every connectivity itself hanging .. once i restarted am coming to normal that is same situation...
tis s on virtual cloud... using webmin...
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Webmin Samba and PCBSD cyberjet All about FreeBSD/OpenBSD/NetBSD 3 14th February 2010 11:38 PM
Configuring mailserver (Postfix) on Webmin bearsuit2 Mail Servers 1 27th June 2009 03:37 AM
Web Application Firewall in UBUNTU kiranjith Linux software 1 23rd April 2009 02:36 PM
Linux Syslog Server & Fortigate Firewall. nishith File Servers 1 6th April 2009 08:09 PM
install and configure vmware server on Ubuntu Linux server raj Linux software 1 17th July 2006 11:21 PM


All times are GMT +5.5. The time now is 08:45 PM.


Powered by vBulletin® Version 3.8.6 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40