LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-06-2005, 09:17 PM   #1
exitsfunnel
Member
 
Registered: May 2003
Distribution: RedHat
Posts: 60

Rep: Reputation: 15
IPTABLES - How to allow all packets from a certain address


Hello,

I'm running RHEL 4.0 and not much of a networking expert and know next to nothing about IPTABLES beyond the fact that I think that they are running I'm trying to connect to the linux box from a windows client on port 1423 but the client is getting a destination unreachable error. By fumbling around around with ethereal I've determined that the packets are showing up but it seems that they are being rejected. I'm guessing that this is a firewall issue. I'm a bit desparate at the moment and don't have time to come up to speed with IPTABLES so I was wondering if someone could just give me the command to allow ALL packets from a particular IP Address. Also, the command to undo it when I'm done would be helpful Thanks in advance.

-exits
 
Old 09-06-2005, 10:00 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
open for IP:
Code:
iptables -I INPUT -j ACCEPT -s {{INSERT_IP_HERE}}
When finished, replace -I with -D and run again.
 
Old 09-06-2005, 10:32 PM   #3
exitsfunnel
Member
 
Registered: May 2003
Distribution: RedHat
Posts: 60

Original Poster
Rep: Reputation: 15
Thanks David, it worked like a charm!

-exits
 
Old 09-06-2005, 10:35 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
No problem. Glad it worked.
 
  


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
logging incoming packets ip address b123coder Linux - Networking 1 11-18-2004 02:17 PM
packets being dropped by server from specific ip address alex_fittyfives Linux - Networking 1 08-04-2004 08:14 AM
What's the latency of packets when using iptables? queezythegreat Linux - Security 1 04-11-2004 02:35 AM
userspace program for forwarding packets after amendment of the destination address becky_starr Linux - Software 0 01-12-2004 06:22 AM
Should i use the eth0 ip address of my internet ip address when applying iptables ForumKid Linux - Security 2 01-03-2002 08:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:30 AM.

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
Open Source Consulting | Domain Registration