Linux Netfilter discussions
 help / color / mirror / Atom feed
* net2phone rules
@ 2005-02-08  6:01 varun_saa
  2005-02-14 22:16 ` Mohammad Khan
  0 siblings, 1 reply; 2+ messages in thread
From: varun_saa @ 2005-02-08  6:01 UTC (permalink / raw)
  To: netfilter

Hello,
      I want my firewall to allow Net2phone.

A visit to http://web.net2phone.com/consumer/commcenter/helpfirewall.asp
states that you need to open up at least three ports:
tcp 80 - tcp 6800 - udp 6801.

One should use INPUT or FORWARD rule ?

Thanks

Varun



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: net2phone rules
  2005-02-08  6:01 net2phone rules varun_saa
@ 2005-02-14 22:16 ` Mohammad Khan
  0 siblings, 0 replies; 2+ messages in thread
From: Mohammad Khan @ 2005-02-14 22:16 UTC (permalink / raw)
  To: varun_saa, netfilter

On Tue, 2005-02-08 at 01:01, varun_saa@vsnl.net wrote:
> Hello,
>       I want my firewall to allow Net2phone.
> 
> A visit to http://web.net2phone.com/consumer/commcenter/helpfirewall.asp
> states that you need to open up at least three ports:
> tcp 80 - tcp 6800 - udp 6801.
> 
> One should use INPUT or FORWARD rule ?

Depends on where is your net2phone client.
If it is *NOT* on your firewall, use FORWARD

I visited the net2phone link, your forward rules should be

# Following two rules would allow log in,
# maintaining online status, and instant messaging
-A FORWARD -s internal_ne_ips -d relay.net2phone.com -p tcp --dport 80
-m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
-A FORWARD -s relay.net2phone -p tcp --sport 80 -m state --state
NEW,ESTABLISHED,RELATED -j ACCEPT

# Following two rules would allow voice packets to go out
-A FORWARD -s internal_net_ips tcp --sport 6800 -m state --state
NEW,ESTABLISHED,RELATED -j ACCEPT
-A FORWARD -s internal_net_ips -p udp --sport 6801 -m state --state
NEW,ESTABLISHED,RELATED -j ACCEPT

# Following two rules would allow voice packets to get in 
-A FORWARD -d external_ip tcp --dport 6800 -m state --state
NEW,ESTABLISHED,RELATED -j ACCEPT
-A FORWARD -d external_ip -p udp --dport 6801 -m state --state
NEW,ESTABLISHED,RELATED -j ACCEPT


Above rules can be made more restrictive !


Enjoy firewalling.

Mohammad


-- 
"Mad cow? You'd be mad too, if someone was trying to eat you."



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-02-14 22:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-08  6:01 net2phone rules varun_saa
2005-02-14 22:16 ` Mohammad Khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox