Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Enthusiast Zone > Networking > How do I forward port 3689 to a different port?

How do I forward port 3689 to a different port?
Thread Tools
Junior Member
Join Date: Nov 2001
Status: Offline
Reply With Quote
May 1, 2003, 01:55 PM
 
How do I forward port 3689 to a different port?

I did it with port 80, but I can't find port 3689 in terminal
     
Dedicated MacNNer
Join Date: Dec 2002
Location: someplace
Status: Offline
Reply With Quote
May 1, 2003, 04:45 PM
 
Firewall forwarding
You can use ipfw to block port 3689, and forward another port to port 3689. Others attempting to connect would need to use the other port, but iTunes would still listen on the default port (3689).
sudo ipfw add 2000 deny tcp from any to any 3689 in
sudo ipfw add 2000 fwd 127.0.0.1,3689 tcp from any to any 36890 in

(2000 is an arbitrary rule number; use the next available rule number.)

To remove the rule:
sudo ipfw delete 2000
     
Junior Member
Join Date: Nov 2001
Status: Offline
Reply With Quote
May 1, 2003, 05:05 PM
 
Originally posted by gatorparrots:
Firewall forwarding
You can use ipfw to block port 3689, and forward another port to port 3689. Others attempting to connect would need to use the other port, but iTunes would still listen on the default port (3689).
sudo ipfw add 2000 deny tcp from any to any 3689 in
sudo ipfw add 2000 fwd 127.0.0.1,3689 tcp from any to any 36890 in

(2000 is an arbitrary rule number; use the next available rule number.)

To remove the rule:
sudo ipfw delete 2000
It didn't work - by the way, my Firewall is OFF
     
Dedicated MacNNer
Join Date: Dec 2002
Location: someplace
Status: Offline
Reply With Quote
May 2, 2003, 11:16 AM
 
It works here:
Code:
gatorparrots% sudo ipfw add 2034 deny tcp from any to any 3689 in 02034 deny tcp from any to any 3689 in gatorparrots% sudo ipfw add 2034 fwd 127.0.0.1,3689 tcp from any to any 36890 in 02034 fwd 127.0.0.1,3689 tcp from any to any 36890 in
Did you do a sudo ipfw list to see the next available rule number?
     
Junior Member
Join Date: Nov 2001
Status: Offline
Reply With Quote
May 3, 2003, 10:16 AM
 
Did you do a sudo ipfw list to see the next available rule number? [/B][/QUOTE]

See next post
(Last edited by alxalxnet; May 3, 2003 at 07:54 PM. )
     
Junior Member
Join Date: Nov 2001
Status: Offline
Reply With Quote
May 3, 2003, 07:52 PM
 
Originally posted by gatorparrots:
It works here:
Code:
gatorparrots% sudo ipfw add 2034 deny tcp from any to any 3689 in 02034 deny tcp from any to any 3689 in gatorparrots% sudo ipfw add 2034 fwd 127.0.0.1,3689 tcp from any to any 36890 in 02034 fwd 127.0.0.1,3689 tcp from any to any 36890 in
Did you do a sudo ipfw list to see the next available rule number?

Ok I did it and a friend of mine managed to connect to my itunes. However he cannot play any song. Here is the list of rules now active, in Terminal. I wonder if there is a conflict among rules.

02000 allow ip from any to any via lo*
02010 deny ip from 127.0.0.0/8 to any in
02020 deny ip from any to 127.0.0.0/8 in
02030 deny ip from 224.0.0.0/3 to any in
02040 deny tcp from any to 224.0.0.0/3 in
02050 allow tcp from any to any out
02060 allow tcp from any to any established
02070 allow tcp from any to any 80 in
02080 allow tcp from any to any 427 in
02090 allow tcp from any to any 20-21 in
02100 allow tcp from any 20,21 to any 1024-65535 in
02110 allow tcp from any to any 139 in
02120 allow tcp from any to any 3689 in
02150 deny tcp from any to any 3689 in
02150 fwd 127.0.0.1,3689 tcp from any to any 36890 in
12190 deny tcp from any to any
65535 allow ip from any to any
     
   
Thread Tools
Forum Links
Forum 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 On
Top
Privacy Policy
All times are GMT -5. The time now is 05:55 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2