Computing.Net > Forums > Linux > Iptables help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Iptables help

Reply to Message Icon

Name: pt2huynh
Date: November 13, 2008 at 06:27:11 Pacific
OS: RHEL 4
CPU/Ram: 2 GB
Comment:

Hi,

I have a machine A and B. I want to use IPTALBES to allow all communication b/t the two; what option can I use? thanks in advance.



Sponsored Link
Ads by Google

Response Number 1
Name: chao
Date: November 14, 2008 at 23:21:56 Pacific
Reply:

Allowing something like that generally requires that both machines have static IPs (ie: the IP won't change). If that's the case, run these commands on each machine (replacing other.ip.addr.ess with a real value, obviously):

iptables -I INPUT -s other.ip.addr.ess -j ACCEPT
iptables -I OUTPUT -d other.ip.addr.ess -j ACCEPT

(The -I makes sure this is the first rule checked; if you just append (-A), make sure you put it before any rules that drop/reject packets.)

WARNING: Those rules, if applied on each machine, will leave communications between the two IPs wide open. Beware, though; it's possible to spoof packets (pretending you're another machine), which leaves you wide open to anyone else who knows to pretend to be the machine B if they want to talk to machine A. If the two boxes aren't on the same local network, you may want to reconsider implementing those rules -- they kinda defeat the purpose of a firewall.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Iptables help

iptables help www.computing.net/answers/linux/iptables-help/13682.html

iptables error www.computing.net/answers/linux/iptables-error/12660.html

IPTABLES & Port forwarding www.computing.net/answers/linux/iptables-amp-port-forwarding/12642.html