[plug] UDP Forwadring

Arkem arkem at mornmist.2y.net
Tue Sep 25 09:39:42 WST 2001


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 25 Sep 2001 09:56, Andrew  Barbara wrote:
> Hi,
> What's the best way to forward UDP packets back and forth through a
> Linux box?  Im using redir for the TCP but as far as I know that
> only does TCP.
>
> Andrew Barbara,  MCP
> MMT Networks Pty Ltd
> http://www.mmtnetworks.com.au

In linux 2.4 you can use the NAT table of iptables
eg.
iptables -t nat -A PREROUTING -p udp --source-port 4000 -j DNAT --to 
192.168.0.210:4000
or
iptables -t nat -A PREROUTING -p udp --source-port 4000 -j REDIRECT 
- --to-port 4005

and so-on and so-forwarth... There is a good NAT howto that comes 
with iptables (so if you've got iptables installed check for it in 
/usr/share/doc/iptables/ or similar).

Also I think ipchains from the 2.2 kernel also can do it.

Regards,
	Paul Chamberlain
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7r+BkC2Nvhs9MA6QRAv8MAKCPGfeikY796DL0yibaH40AIJ27tACgyQrI
ndiAbvcYCrbMDHgkwwY/Hd0=
=zNGs
-----END PGP SIGNATURE-----



More information about the plug mailing list