LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-03-2010, 04:36 AM   #1
psix
LQ Newbie
 
Registered: Jun 2009
Posts: 20

Rep: Reputation: 0
Iptables rule


Good afternoon,

after applying the rules for asterisk. After several hours rule stops working. What could it be?

That rule itself:

iptables-t nat-A PREROUTING-p udp-d 192.168.1.1 - dport 5060-j DNAT - to-destination 192.168.1.2

I have Centos 5.5 and Iptables v1.3.5 ..

Please HELP ...
 
Old 11-03-2010, 11:15 AM   #2
module0000
Member
 
Registered: Feb 2010
Location: USA
Distribution: RHEL
Posts: 36

Rep: Reputation: 15
After it stops working, does `iptables -t nat -L -v -n` still show your rule as present? If so, is the rule counter still incrementing?
 
Old 11-08-2010, 01:39 AM   #3
psix
LQ Newbie
 
Registered: Jun 2009
Posts: 20

Original Poster
Rep: Reputation: 0
Hi , i check rule:

hain PREROUTING (policy ACCEPT 671K packets, 62M bytes)
pkts bytes target prot opt in out source destination
642 240K DNAT udp -- * * 0.0.0.0/0 217.23.132.82 udp dpt:5060 to:217.23.132.83

Chain POSTROUTING (policy ACCEPT 345K packets, 22M bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 345K packets, 22M bytes)
pkts bytes target prot opt in out source destination

after i try to connect:

Chain PREROUTING (policy ACCEPT 672K packets, 62M bytes)
pkts bytes target prot opt in out source destination
642 240K DNAT udp -- * * 0.0.0.0/0 217.23.132.82 udp dpt:5060 to:217.23.132.83

Chain POSTROUTING (policy ACCEPT 345K packets, 22M bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 345K packets, 22M bytes)
pkts bytes target prot opt in out source destination

I think rule not working...... (

How i fix this ?
 
Old 11-08-2010, 01:50 AM   #4
psix
LQ Newbie
 
Registered: Jun 2009
Posts: 20

Original Poster
Rep: Reputation: 0
After some time i have:


Chain PREROUTING (policy ACCEPT 674K packets, 62M bytes)
pkts bytes target prot opt in out source destination
644 242K DNAT udp -- * * 0.0.0.0/0 217.23.132.82 udp dpt:5060 to:217.23.132.83

Chain POSTROUTING (policy ACCEPT 347K packets, 22M bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 347K packets, 22M bytes)
pkts bytes target prot opt in out source destination
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
iptables: rule with RETURN target just after a rule with ACCEPT target Nerox Linux - Networking 6 09-04-2011 03:33 PM
iptables rule sang_froid Linux - Networking 1 03-18-2009 10:32 AM
iptables rule bkcreddy17 Linux - Security 2 01-20-2009 06:38 AM
iptables rule help the_gripmaster Linux - Security 3 05-15-2007 07:19 AM
help with iptables rule!! vishamr2000 Linux - Security 6 11-09-2005 05:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:15 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration