Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-06-2013, 03:44 PM
|
#1
|
LQ Newbie
Registered: Oct 2013
Distribution: CentOS 6.4 x86_64
Posts: 4
Rep: 
|
Allowing ports IPtables
Hello members of LQ. I am a new member here and I need your help.
I have 1 dedicated server and OpenVZ virtualisation set up. On that server I have 4 OpenVZ virtualised servers (VPS) and I run rtorrents on them. When somebody adds a torrent to their rutorrent, it downloads automatically and seeds.
But the problem exists on website where you can't create a torrent without being connectable (means you have rutorrent port open) and that website checks that.
I would need to open ports for rtorrent, ingoing and outgoing so website can check if I am connectable or not through a port.
I have already tried allowing all traffic (maybe I have done it wrong) but it didn't help. I have also restarted iptables with "service iptables restart" but no luck.
OpenVZ VPS and my dedicated machine both run CentOS 6.4 x86_64.
Could anyone help me find where the problem is why doesn't it react to my commands and are they typed good.
Thank you,
n3k0
|
|
|
10-06-2013, 04:00 PM
|
#2
|
Member
Registered: Aug 2011
Location: USA
Distribution: ArchLinux - 3.0 kernel
Posts: 349
Rep: 
|
what iptables commands did you run?
|
|
|
10-06-2013, 04:04 PM
|
#3
|
LQ Newbie
Registered: Oct 2013
Distribution: CentOS 6.4 x86_64
Posts: 4
Original Poster
Rep: 
|
I have tried runnning these 2 commands:
iptables -I INPUT -p tcp -m tcp --dport 23879:23886 -j ACCEPT
iptables -I OUTPUT -p tcp -m tcp --sport 23879:23886 -j ACCEPT
23879:23886 - this is the port range in .rtorrent.rc configuration file
And I have also tried this one which was suggested by my friend:
iptables -A INPUT -p tcp --dport 23879:23886 -j ACCEPT
Any help on fixing this would be appriciated.
I'm sorry my friend hasn't told me about this forum earlier because it's great as it has much information and really fast help.
Thanks
|
|
|
10-06-2013, 04:10 PM
|
#4
|
Member
Registered: Aug 2011
Location: USA
Distribution: ArchLinux - 3.0 kernel
Posts: 349
Rep: 
|
did you ever try adding the ports to the FORWARD range?
Code:
iptables -I FORWARD -p tcp -m tcp --dport 23879:23886 -j ACCEPT
|
|
|
10-06-2013, 04:23 PM
|
#5
|
LQ Newbie
Registered: Oct 2013
Distribution: CentOS 6.4 x86_64
Posts: 4
Original Poster
Rep: 
|
No luck with that too... Everything worked well until 2 days ago when I had to reinstall all those VPS, and then these problems started. I have installed everything in the same way as before, and I didn't need to add iptables. I have no idea what could it be.
Here is my "netstat", maybe it helps:
http://pastebin.com/imMzPHxf
Thanks
|
|
|
10-07-2013, 12:50 PM
|
#6
|
LQ Newbie
Registered: Oct 2013
Distribution: CentOS 6.4 x86_64
Posts: 4
Original Poster
Rep: 
|
Nobody has an idea how this should be done, as the commands above don't work correctly...
Thanks
|
|
|
10-07-2013, 10:23 PM
|
#7
|
Member
Registered: Aug 2011
Location: USA
Distribution: ArchLinux - 3.0 kernel
Posts: 349
Rep: 
|
maybe post your whole iptables.rules? censor addresses if you need. you could have a rule dropping the traffic somewhere before. also, are there any upstream firewalls that might need to be reconfigured, ever since you reinstalled the VPS setup?
also, i'm assuming that your torrent traffic is indeed TCP? and not UDP?
Last edited by psycroptic; 10-07-2013 at 10:26 PM.
|
|
|
All times are GMT -5. The time now is 07:09 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|