Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Opening Port With Iptables, which softwares use which ports ?
orko
post Nov 25 2003, 04:06 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 15
Joined: 24-November 03
From: Chittagong, Bangladesh
Member No.: 1,861



i m using Redhat linux 9.0
i want to allow Kazaa, Net2Phone and Paltalk ports to allow my users for using these softwares.
can anyone tell me which ports should be opened in iptables for allowing these softwares.
thanx in advance.
Go to the top of the page
 
+Quote Post
hughesjr
post Nov 25 2003, 02:50 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



PalTalk

Net2Phone

Kazaa is port 1214 TCP...


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
orko
post Nov 26 2003, 06:59 AM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 15
Joined: 24-November 03
From: Chittagong, Bangladesh
Member No.: 1,861



thanx !
let me tell u details wat i've done and wat i m trying to do...
i was suffering for some unexpected broadcasting frm my client's pc and write a simple firewall. my eth0's ip is static ip which is connected with internet (216.236.104.124) and eth1's ip is connected with my LAN (192.168.100.254). my firewall is something like followings:

iptables -A INPUT -s 192.168.100.254 -d 0/0 -j ACCEPT
iptables -A FORWARD -s 192.168.100.254 -d 0/0 -j ACCEPT

iptables -A FORWARD -s 0/0 -d 0/0 --dport 80 -j ACCEPT
iptables -A FORWARD -s 0/0 -d 0/0 --dport 20 -j ACCEPT
iptables -A FORWARD -s 0/0 -d 0/0 --dport 21 -j ACCEPT
iptables -A FORWARD -s 0/0 -d 0/0 --dport 22 -j ACCEPT
iptables -A FORWARD -s 0/0 -d 0/0 --dport 6000:7000 -j ACCEPT
iptables -A FORWARD -s 0/0 -d 0/0 -j REJECT
iptables -t nat POSTROUTING -o eth0 -j SNAT --to-source 216.236.104.124

someone told me to use this script for avoiding unexpected broadcasting which crashed my total network. with this script i allow only those ports which is trustworthy and which is used for specfic softwares.
is there any other way to do this job ??
i've read ur link and tried to open Net2Phone's port for my clients
but its not working . i've to open all ports from 1 to 30000 to allow net2phone. but my servers hanged up when i open so many ports.

now what to do ?
Go to the top of the page
 
+Quote Post
hughesjr
post Nov 26 2003, 09:34 PM
Post #4


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



For Net@Phone, it looks like you specify 3 ports (2 udp and one tcp) and then you setup net2phone to use those 3 ports ... one of them is 6801 .. .you pick the other 2 and then change the configureation of net2phone on each clinet...
------------------------------


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st October 2017 - 12:51 PM