LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-08-2004, 01:42 PM   #1
English_Man
Member
 
Registered: Feb 2004
Location: Stockholm SWEDEN
Distribution: Ubuntu server 15.10
Posts: 60

Rep: Reputation: 15
Port redirecting


Hi, I am running a BitTorrent Tracker on Mandrake 9.2, its working great, I always use python code, been usig it for about 1½ years now, just upgraded to 3.4

Anyway, I need this one progam to listen and respond on both ports 6969 and 3434, now when I start the program I use the built in command line arguments;
Code:
#python bttrack.py --port 6969 --dfile dstate
Thats all that is needed to get it running. No I dont want to have to run 2 different trackers, one for each port, so the Dev guys suggested Iptables. This is 100% geek talk to me, as I am very very new to Linux.

I istalled the IPtables packages and added the following line as root:
Code:
#iptables -t nat -A PREROUTING -p tcp --dport 3434 -j REDIRECT --to-ports 6969
Now, when you access my tracker on the following URl you can see it, hxxp://english-man.mine.nu:6969 and on hxxp://english-man.mine.nu:3434

There is 2 porblems now, the first is that I cannot see port 3434, at all, I get connection timouts, I cant even see it at localhost:3434.

The second is that the tracker is listening to the /announce's on 3434 but is not responding, all the clients are sat with "connecting to peers". I need this to work ASAP as I need to have sever trackers redirected to my box.

If anyone has any advice/suggestions on how to make port 3434 redirect everything to 6969 and for it to all the tracker to respond to it, please respond.

Thanks in advance!

English_Man
 
Old 03-08-2004, 01:52 PM   #2
English_Man
Member
 
Registered: Feb 2004
Location: Stockholm SWEDEN
Distribution: Ubuntu server 15.10
Posts: 60

Original Poster
Rep: Reputation: 15
Now using 2 sepeate trackers, one on each port so I removed the IPtables command, but I would still like to make this work with only using 1 tracker.

E_Man
 
Old 03-09-2004, 08:10 AM   #3
English_Man
Member
 
Registered: Feb 2004
Location: Stockholm SWEDEN
Distribution: Ubuntu server 15.10
Posts: 60

Original Poster
Rep: Reputation: 15
Does anyone have any suggestions?

E_Man
 
Old 03-09-2004, 08:40 AM   #4
English_Man
Member
 
Registered: Feb 2004
Location: Stockholm SWEDEN
Distribution: Ubuntu server 15.10
Posts: 60

Original Poster
Rep: Reputation: 15
It is actually working now.

E_Man
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
redirecting port on my PC patcito Linux - Networking 3 10-20-2005 05:27 PM
port redirecting st3reo Linux - Networking 3 11-12-2004 06:35 PM
Port Redirecting Problem with Transparent Proxy landuchi Linux - Networking 15 11-08-2004 08:01 AM
Redirecting Half_Elf Linux - Networking 2 09-04-2002 11:51 PM
about port redirecting cmardhekar Linux - Newbie 1 09-13-2001 08:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration