Henrik wrote:
> UDP protocol sends a package and do not check for if the
> packet arrives or not, hence you can not "forward" a UDP
> packet - only listen for it. So forwarding a UDP packet in
> fact only just opens the port for the client to listen for
> it. This is pure "network topoligies" and have nothing
> specific to do with SME server or linux so you cant really
> blame anyone...
Not quite.
In fact, the portforwarding rpm now inserts the portforwarding chain in /etc/rc.d/init.d/masq :
/sbin/iptables --table nat --append PortForwarding_$$ --protocol udp \
--destination-port 2301 -j DNAT --to-destination 192.168.0.205:2301
adjust_udp_in 2301 ACCEPT InboundUDP_$$
In a previous message (
http://forums.contribs.org/index.php?topic=16495.msg63815#msg63815) you can read:
Author: Charlie Brady (charlieb_AT_e-smith.com)
Date: 02-11-03 17:40
>Jon Blakely wrote:
>> Sorry, I put you on the wrong track in your previous post. I
>> made an assumption that if there was an 'Allow_tcp_in' sub
>> routine there was a, 'Allow_udp_in' subroutine. Unfortunately
>> that is not the case.
>There is, but only in the updated e-smith-packetfilter RPM in my contrib >directory.
>You'll also need to call the function correctly. You'll need to write a loop and call >the function once for each port you wish to open.
>Charlie
In other words: you can't use the latest packetfilter because of a mistake in the portforwarding, but I can't use the old version as well, because the UDP forwarding is not yet implemented (I tested it, and it indeed did not work).
So now I am back to my original question again: what can I do to make it work?
Charlie, are you planning to work on the packetfilter?
Or, can I just disable the packetfilter of e-smith entirely, and implement one of the numerous ones around on the Internet? In that case: how do I disable it (rather than just flush the rules)?
That would of course break the automatic coupling of ports opened with activation of services, so this is only a last resort when all else fails.
Good luck to those who want to improve the program,
and thanks to all for looking into other peoples' problems on this forum.
Kind greetings,
Thony