The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
IPtables 182x IP Networking 1 11-27-2006 10:03 PM
Linux IPTABLES help nogumo UNIX for Dummies Questions & Answers 0 06-18-2005 04:31 PM
IPtables Jody UNIX for Dummies Questions & Answers 3 05-31-2003 05:08 PM
iptables: block/allow ftp sTorm Security 5 04-01-2002 11:54 PM
iptables, ftp sTorm UNIX for Dummies Questions & Answers 2 03-18-2002 11:18 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-24-2008
Registered User
 

Join Date: Apr 2008
Posts: 1
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
iptables question need help

Description
i used iptables firewall is a month,running is favorable.it is failed when i connecting to my server on time.the servers' web service and all ports did not connect.i remote login the other server and through intranet address login this server then i restart iptables .but through internet still could not connect.
I do not know .why ?i tested my iptables rules on other server.at works well.

the iptables rule following

iptables #!/bin/bash
iptables -F
iptables -Z
iptables -X
wlc_addr=158.61.161.183
lc_addr=192.168.1.233
lo_addr=127.0.0.1
iptables -P OUTPUT ACCEPT
iptables -P INPUT DROP
iptables -P FORWARD ACCEPT
iptables -A INPUT -p ALL -s $lc_addr -d $lc_addr -j ACCEPT
iptables -A INPUT -p ALL -s $wlc_addr -d $wlc_addr -j ACCEPT
iptables -A INPUT -p ALL -s $lo_addr -d $lo_addr -j ACCEPT
iptables -A INPUT -i eth1 -p tcp --dport 22 -j ACCEPT
-A INPUT -i eth1 -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -i eth1 -p tcp --sport 28888 -j ACCEPT
iptables -A INPUT -i eth1 -p tcp --dport 28888 -j ACCEPT
iptables -A INPUT -i eth1 -p tcp --dport 8888 -j ACCEPT
iptables -A INPUT -i eth1 -p tcp --dport 37946 -j ACCEPT
iptables -A INPUT -i eth1 -p tcp --sport 7891 -j ACCEPT
iptables -A INPUT -i eth1 -p tcp --sport 7890 -j ACCEPT
iptables -A INPUT -i eth1 -p tcp --sport 7911 -j ACCEPT
iptables -A INPUT -i eth1 -p tcp --sport 25 -j ACCEPT
iptables -A INPUT -i eth1 -p udp --sport 53 -j ACCEPT
iptables -A INPUT -i eth1 -p tcp --sport 7910 -j ACCEPT
iptables -A INPUT -i eth1 -p tcp --sport 65100 -j ACCEPT
iptables -A INPUT -i eth1 -p tcp --sport 10123 -j ACCEPT
iptables -A INPUT -i eth1 -p tcp --sport 1521 -j ACCEPT
iptables -A INPUT -i eth1 -p tcp --sport 5511 -j ACCEPT
iptables -A INPUT -i eth0 -p ALL -s 192.168.1.232 -d 192.168.1.233 -j ACCEPT
iptables -A INPUT -p ALL -s 192.168.1.232 -d 192.168.1.233 -j ACCEPT
iptables -A INPUT -p ALL -s 158.61.161.182 -d 158.61.161.183 -j ACCEPT
iptables -A INPUT -p ALL -s 211.138.225.168 -d 158.61.161.183 -j ACCEPT
iptables -A INPUT -p ALL -s 218.246.35.15 -d 158.61.161.183 -j ACCEPT
iptables -A INPUT -p ALL -s 211.138.238.11 -d 158.61.161.183 -j ACCEPT
iptables -A INPUT -p ALL -s 210.72.145.14 -d 158.61.161.183 -j ACCEPT
iptables -A INPUT -p ALL -s 211.138.224.53 -d 158.61.161.183 -j ACCEPT
Reply With Quote
Google UNIX.COM
Forum Sponsor
Reply

Thread Tools
Display Modes


The 50 most popular UNIX and Linux searches.
Google Search Cloud for The UNIX and Linux Forums
421 service not available, remote server has closed connection ^m automate ftp autosys awk trim bash eval bash for loop boot: cannot open kernel/sparcv9/unix command copy/move folder in unix curses.h cut command in unix daemon process find grep find mtime find null character in a unix file from ip can we get machine name +unix glance unix grep multiple lines grep or grep recursive how to redirect console logs in unix inaddr_any inappropriate ioctl for device lynx javascript mailx attachment mget mtime perl array length ping port remove first character from string in k shell replace space by comma , perl script scp recursive segmentation fault(coredump) sftp script snoop unix stale nfs file handle syn_sent tar exclude tar extract to folder unix unix .profile unix forum unix forums unix internals unix interview questions unix mtime unix simulator unix.com vi substitute while loop within while loop shell script


All times are GMT -7. The time now is 12:26 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0

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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101