Networking Forums

Networking Forums > Computer Networking > Linux Networking > Port forwarding, again

Reply
Thread Tools Display Modes

Port forwarding, again

 
 
UK
Guest
Posts: n/a

 
      10-09-2003, 02:06 PM
Hi,

I posted this same question 2 weeks ago but with no real
answer that can solve this problem...
I'm trying to solve this quite some time.

Well this is the problem.

10.254.254.100 is AXIS IP cammera, when you restart camera it's
sending UDPs to 255.255.255.255,to port 67 (this is manufacturer
specification and also RFC bootp specification, I can't change that).
So anyone(bootp server) can receive that bootp request
and send reply back to camera to set up new IP address of camera.
So camera is bootp client and my software is bootp server, my software
is on 10.254.254.1, but because my app. is not root it can't receive
that UDPs on port 67 and I have to forward UDPs on some other port
that I can bind to, > 1024.
Of course on windows, app is working.

My question is what IPTABLES combination I have to use for this.
I tried this one
iptables -t nat -A PREROUTING -i 10.254.254.1 -p udp --dport 67 -j
REDIRECT --to-port 6700

and this one
iptables -t nat -A OUTPUT -p udp -d 10.254.254.1 --dport 67 -j
REDIRECT --to 6700

but with no result, tcpdump on port 6700 is not detecting any packets
received.

Thanks


 
Reply With Quote
 
 
 
 
Andy Furniss
Guest
Posts: n/a

 
      10-10-2003, 08:01 AM
UK wrote:

> Hi,
>
> I posted this same question 2 weeks ago but with no real
> answer that can solve this problem...
> I'm trying to solve this quite some time.
>
> Well this is the problem.
>
> 10.254.254.100 is AXIS IP cammera, when you restart camera it's
> sending UDPs to 255.255.255.255,to port 67 (this is manufacturer
> specification and also RFC bootp specification, I can't change that).
> So anyone(bootp server) can receive that bootp request
> and send reply back to camera to set up new IP address of camera.
> So camera is bootp client and my software is bootp server, my software
> is on 10.254.254.1, but because my app. is not root it can't receive
> that UDPs on port 67 and I have to forward UDPs on some other port
> that I can bind to, > 1024.
> Of course on windows, app is working.
>
> My question is what IPTABLES combination I have to use for this.
> I tried this one
> iptables -t nat -A PREROUTING -i 10.254.254.1 -p udp --dport 67 -j
> REDIRECT --to-port 6700
>
> and this one
> iptables -t nat -A OUTPUT -p udp -d 10.254.254.1 --dport 67 -j
> REDIRECT --to 6700
>
> but with no result, tcpdump on port 6700 is not detecting any packets
> received.
>
> Thanks


If you are running the rule on your app PC try -i 255.255.255.255 or eth0
etc. instead of -i 10.254.254.1.

Andy.

 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
port tunneling over ssh (not port-forwarding in the traditional sense) C3 Linux Networking 1 07-26-2006 03:44 PM
Port forwarding on Conexant 4 port adsl router Graham Russell Broadband 14 10-24-2003 09:16 PM
Port forwarding on Conexant 4 port adsl router Graham Russell Broadband 1 10-17-2003 11:09 AM
Stupid Question: Port Triggering vs. Port Forwarding Bryce Wireless Internet 3 09-09-2003 05:45 AM
Do I need port forwarding on 25 port to send messages? bu Linux Networking 4 07-17-2003 02:42 PM



1 2 3 4 5 6 7 8 9 10 11