Networking Forums

Networking Forums > Computer Networking > Linux Networking > Problem with Firewalls (p2p programs)

Reply
Thread Tools Display Modes

Problem with Firewalls (p2p programs)

 
 
Wojtek M.
Guest
Posts: n/a

 
      02-24-2004, 09:06 PM
Hello

My network look like:
Internet-Firewall-Firewall-LAN
Default rules is DROP and next I allow some services for
example SSH:
$IPTABLES -A FORWARD -p tcp --dport 22 -s $LAN_IP_RANGE \
-i $LAN_IFACE -j ACCEPT
.....
$IPTABLES -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT

On the both firewalls are the same rules and works OK, means SSH and
another services works good.

But now I want to allow connect with/to Direct Connect (port 411)
I wrote the same rules. I can connect to hub, but transfer of files are not
possible ("connection time out" - sad DC client).
Similarly is with other p2p programs - didn't works.

ps. When in network was one Firewall:
Inetnet-Firewall-LAN, p2p programs works good.

So do anyone know what to do??

thanks in advance

Yours sincerly!
W.


 
Reply With Quote
 
 
 
 
Cameron Kerr
Guest
Posts: n/a

 
      02-25-2004, 07:53 AM
Wojtek M. <(E-Mail Removed)> wrote:
> Hello
>
> My network look like:
> Internet-Firewall-Firewall-LAN
> Default rules is DROP and next I allow some services for
> example SSH:


You want to put --syn in there as well if you're using --state. The
--state rule should go very near the top of the firewall, for
performance reasons mainly.

> $IPTABLES -A FORWARD -p tcp --dport 22 -s $LAN_IP_RANGE \
> -i $LAN_IFACE -j ACCEPT
> ....
> $IPTABLES -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT


> On the both firewalls are the same rules and works OK, means SSH and
> another services works good.
>
> But now I want to allow connect with/to Direct Connect (port 411)
> I wrote the same rules. I can connect to hub, but transfer of files are not
> possible ("connection time out" - sad DC client).
> Similarly is with other p2p programs - didn't works.


Are these routers doing NAT?

Try running tcpdump on the firewalls and seeing what the clients are
trying to do.

From what you have written, it would seem that you can run in passive
mode, but not active mode. This means that you need to allow connections
(probably to port 411, tcpdump will tell you what's really happening),
to the client from the internet.

> ps. When in network was one Firewall:
> Inetnet-Firewall-LAN, p2p programs works good.


Make sure these connections can make it through both firewalls. If
you're using NAT, don't forget you need to use port-forwarding. (DNAT)

--
Cameron Kerr
(E-Mail Removed) : http://nzgeeks.org/cameron/
Empowered by Perl!
 
Reply With Quote
Reply

Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange problem; programs won't open with wifi enabled jonesy889 Wireless Networks 0 02-21-2006 12:28 PM
Computer Programs Jared Wireless Networks 1 04-10-2005 11:57 PM
Backup programs Noah Roberts Linux Networking 4 02-14-2005 07:57 PM
programs for networking terrance Windows Networking 0 09-27-2003 11:31 AM
C-R Mail Programs Alan Connor Linux Networking 0 07-30-2003 05:32 AM



1 2 3 4 5 6 7 8 9 10 11