broadcasts to other network?
Dear all,
I have a little problem. I have an 3com ISDN router, which broadcasts every 10 seconds on src-port 1025, dst-port 2071 and protocol udp. 3com has released a program that collects those broadcasts to report the status of the router.
The log of the packets:
Dec 21 09:46:51 firewall kernel: IN=eth0 OUT=
MAC=ff:ff:ff:ff:ff:ff:08:00:4e:a6:f5:74:08:00 SRC=192.168.1.1 DST=192.168.1.255 LEN=116 TOS=0x00 PREC=0x00 TTL=64 ID=42318 PROTO=UDP SPT=1025 DPT=2071 LEN=96
Now I want to move my computer behind my firewall and let my firewall to forward those broadcasts.
The new situations will be:
+----------+ +----------+ +----------+
| ISDN- | | | | ADSL- |
| router |-----| firewall |-----| router |
| | | | | |
+----------+ +----------+ +----------+
|
|
|
+----------+
| Internal |
| network |
| |
+----------+What I already have done:
I have added the following rule:
iptables -t nat -I PREROUTING -s 192.168.1.1 -p udp --sport 1025 --dport 2071 -j DNAT --to 192.168.2.255
The logging changed:
Dec 21 09:42:01 firewall kernel: IN=eth0 OUT=
MAC=ff:ff:ff:ff:ff:ff:08:00:4e:a6:f5:74:08:00 SRC=192.168.1.1 DST=192.168.2.255 LEN=116 TOS=0x00 PREC=0x00 TTL=64 ID=42284 PROTO=UDP SPT=1025 DPT=2071 LEN=96
But no packets went out, at least that I couldn't see after adding a LOG-rule at OUTPUT and FORWARD.
Is there an easy way to solve this or do I need a relaying-program (like dhcp)?
Greetings,
--
Frans Luteijn
PGP PblKey fprnt=C4 87 CE AF BC B6 98 C1 EF 42 A1 9A E2 C0 42 5B GPG PblKey fprnt=ED20 0F25 C233 DC59 3FFA 170E D0BF 15F5 0BA6 1355
Quoted 12 lines · Frans Luteijn
...
But no packets went out, at least that I couldn't see after adding a LOG-rule at OUTPUT and FORWARD.
Is there an easy way to solve this or do I need a relaying-program (like dhcp)?
Greetings,
The easiest way, IMHO, is using an UDP-Relay ... i mean, what is more simple then a little daemon running smoothly ? ;)
A better and not easy way would be bridging the interface to the internal lan with the interface to the router using the same network class. This way broadcasts would pass normally from one side of the firewall to the other one, you could as well filter traffic beetween the two interfaces.
I would choose the latter ;)
bye
primeroz
[email protected] schreef:
Quoted 23 lines
Quoted 12 lines · Frans Luteijn
...
But no packets went out, at least that I couldn't see after adding a LOG-rule at OUTPUT and FORWARD.
Is there an easy way to solve this or do I need a relaying-program (like dhcp)?
Greetings,
The easiest way, IMHO, is using an UDP-Relay ... i mean, what is more simple then a little daemon running smoothly ? ;)
A better and not easy way would be bridging the interface to the internal lan with the interface to the router using the same network class. This way broadcasts would pass normally from one side of the firewall to the other one, you could as well filter traffic beetween the two interfaces.
Quoted 3 lines
I would choose the latter ;)
bye
primeroz
I want to choose the former. I am offering my ADSL to my house-mates via a
wireless lan connected to my firewall with a fourth interface (not drawn in
my first mail) and I don't want thost users on my private-net (it can be filtered out, but why doing it the hard way?).
Does someone know a program, that can relay udp-broadcasts?
Greetings,
--
Frans Luteijn
PGP PblKey fprnt=C4 87 CE AF BC B6 98 C1 EF 42 A1 9A E2 C0 42 5B GPG PblKey fprnt=ED20 0F25 C233 DC59 3FFA 170E D0BF 15F5 0BA6 1355
Quoted 1 line · [email protected] wrote:
Does someone know a program, that can relay udp-broadcasts?
Something like this ?
http://www.vttoth.com/tunnel.htm#Appendix
Also, the overview of Delegate (http://www.delegate.org/) says it can do UDP relay (with restrictions so I don't know if it's usable for you). Specifically : http://www.delegate.org/delegate/Manual.htm#serv_udprelay
Gr,
Rob