> The output rule seems to be odd. wouldnt the dport be 6700 and redirect to
> 67, if this is required ?
Well, I need to redirect from 67 to 6700.
These two rules that I wrote, I didn't use these rules together, I
tried each one alone but with no result:
*iptables -t nat -A PREROUTING -i 10.254.254.1 -p udp --dport 67 -j
REDIRECT --to-port 6700
*iptables -t nat -A OUTPUT -p udp -d 10.254.254.1 --dport 67 -j
REDIRECT --to 6700
> Also you may need to add a rule to allow the packet to be Input first ?
> eg iptables -I INPUT -dport 67 -j ACCEPT
I don't know

, because this is my first encounter with Linux, but if
I listen with dcpdump on receiving port 67, I can see that packets are
coming.
"Leon The Peon" <(E-Mail Removed)> wrote in message news:<bl8dvu$svv$(E-Mail Removed)>...
> "uk" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed) om...
> > Hi,
> >
> > I'm distributing Java app to SuSe 7.2
> > I have one problem, I need to receive UDP packets on port 67 (bootp)
> > on
> > Windows that's OK but on Linux I can't bind to the port <1024.
> > Is there a way to route packets from port 67 to some port > 1024 using
> > linux
> > IPtables or some other way, I tried several combinations with no
> > success.
> > Device that is sending UDPs is 10.254.254.100 and it is sending to
> > 255.255.255.255, interface that have to receive UDPs is 10.254.254.1
> >
> > iptables -t nat -A PREROUTING -i 10.254.254.1 -p udp --dport 67 -j
> > REDIRECT --to-port 6700
> > iptables -t nat -A OUTPUT -p udp -d 10.254.254.1 --dport 67 -j
> > REDIRECT --to 6700
> >
> > With tcpdump (tcpdump udp port 67) I can see that packets are coming
> > to the
> > port 67, but nothing to the port 6700.
> >
>
> Well the prerouting rule seems to be ok,
>
> The output rule seems to be odd. wouldnt the dport be 6700 and redirect to
> 67, if this is required ?
>
> Also you may need to add a rule to allow the packet to be Input first ?
> eg iptables -I INPUT -dport 67 -j ACCEPT
>
>
>
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.521 / Virus Database: 319 - Release Date: 23/09/2003