Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 28th September 2011, 12:39 AM
KidVicious Offline
Registered User
 
Join Date: Dec 2010
Location: greece
Posts: 6
linuxchrome
i think ive messed up my ip table rules

Quote:
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT)
target prot opt source destination
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
ACCEPT all -- anywhere anywhere
DROP all -- anywhere anywhere
ACCEPT all -- anywhere anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
anything out of the ordinary?
Reply With Quote
  #2  
Old 28th September 2011, 04:13 AM
bodhi.zazen's Avatar
bodhi.zazen Offline
Registered User
 
Join Date: Jul 2006
Location: Montana
Posts: 731
linuxfirefox
Re: i think ive messed up my ip table rules

We can not tell without more information.

What are you trying to accomplish with iptables ? What do you want to accept and what do you want to reject ?

What problem are you having or what makes you think something is wrong ?

Please post the output of

Code:
iptables -L -v -n
As you line "ACCEPT all -- anywhere anywhere " could be anything from accept all traffic on the lo interface to accept all traffic from everywhere.

Same as with your forward chain, we really can not tell why you are rejecting, they accepting, then dropping, and finally accepting all.
__________________
If it is not broken, tweak it... If you break Fedora you get to keep both pieces :p
Reply With Quote
  #3  
Old 28th September 2011, 05:15 AM
flyingfsck Offline
Registered User
 
Join Date: Aug 2010
Location: Al Ain, UAE
Posts: 1,054
linuxfirefox
Re: i think ive messed up my ip table rules

Hmm, another important point to ponder, is that the rules are processed in order, top down. So in general, adding a new rule at the bottom of the list, will not do anything at all, if the packet is already be accepted by another rule above.

While fooling around and learning, you can flush all the rules with: iptables -F
Reply With Quote
  #4  
Old 28th September 2011, 10:21 AM
KidVicious Offline
Registered User
 
Join Date: Dec 2010
Location: greece
Posts: 6
linuxchrome
Re: i think ive messed up my ip table rules

Quote:
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
6593 7761K ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
16 1140 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT ah -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT esp -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW udp dpt:500
26 4424 ACCEPT udp -- * * 0.0.0.0/0 224.0.0.251 state NEW udp dpt:5353
0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW udp dpt:631
0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW udp dpt:137
0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW udp dpt:138
5 489 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT 5163 packets, 543K bytes)
pkts bytes target prot opt in out source destination
theres the output..
Im just trying to learn how stuff wokrs with trial and error .

Last edited by KidVicious; 28th September 2011 at 10:26 AM.
Reply With Quote
  #5  
Old 28th September 2011, 10:36 AM
flyingfsck Offline
Registered User
 
Join Date: Aug 2010
Location: Al Ain, UAE
Posts: 1,054
linuxfirefox
Re: i think ive messed up my ip table rules

That is cool. Just try a few rules at a time and flush them when you mess up.

If you read the iptables man page about ten times, it will eventually begin to make some sense...
Reply With Quote
  #6  
Old 28th September 2011, 10:39 AM
KidVicious Offline
Registered User
 
Join Date: Dec 2010
Location: greece
Posts: 6
linuxchrome
Re: i think ive messed up my ip table rules

thnx for the help. !
Reply With Quote
Reply

Tags
messed, rules, table

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Messed up partition table for Fedora 8 sidebrnz Installation and Live Media 3 1st January 2008 01:46 AM
does /etc/rules/60-wacom.rules work? Ujeen Hardware & Laptops 3 9th July 2007 03:44 PM
Yumex royally messed up bugzilla says not a bug that my system locale is messed up glenngds2006 Using Fedora 0 24th November 2006 11:16 PM
iptables rules - what is wrong with my rules? duni Servers & Networking 4 30th August 2006 07:38 PM


Current GMT-time: 02:32 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat