LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-06-2009, 08:08 AM   #1
cviniciusm
LQ Newbie
 
Registered: Apr 2005
Posts: 20

Rep: Reputation: 0
Question Why my iptables rules from Shorewall is using DNS instead of IP?


Hello,

I'm using Ubuntu 9.04, Shorewall 4.0.15-1 and iptables 1.4.1.1-4ubuntu3 .

My Shorewall rules uses IP's, but when I did do 'invoke-rc.d shorewall force-reload' or '... restart' the iptables rules shows the DNS's instead of IP's.

How to force iptables to show IP's only, please?

I use 'iptables -L --line-numbers' to see my iptables rules.


TIA,
cviniciusm.
 
Old 07-06-2009, 12:19 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,398

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
it does a reverse lookup for you when you run that. add a "-n" to stop that.
 
Old 07-06-2009, 08:22 PM   #3
cviniciusm
LQ Newbie
 
Registered: Apr 2005
Posts: 20

Original Poster
Rep: Reputation: 0
Hello,

So, my iptables is using IP's from Shorewall rules instead of DNS's, right?


Thank you very much,
cviniciusm.
 
Old 07-06-2009, 08:59 PM   #4
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
Originally Posted by cviniciusm View Post
So, my iptables is using IP's from Shorewall rules instead of DNS's, right?
Yes. Iptables only does IPs.

Even if you give it a domain name in a rule, it will do a lookup and substitute an IP for it.
 
  


Reply

Tags
iptables, shorewall, ubuntu904


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
shorewall rules configuration jindalarpan Linux - Security 1 04-15-2008 10:11 AM
shorewall rules jindalarpan Linux - Software 1 04-13-2008 05:27 PM
Shorewall rules Configuration.... tagbantay Linux - Security 1 10-03-2007 09:55 PM
iptables: Using shorewall and the priority (dominance) of rules Silly22 Linux - Networking 2 01-13-2007 10:46 PM
shorewall config question with /etc/shorewall/rules peter72 Linux - Networking 3 01-01-2007 09:33 PM


All times are GMT -5. The time now is 05:48 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration