[Samba] Port Forward UDP 1911

Paul Yip paulyip at hkbu.edu.hk
Tue Mar 11 08:43:14 GMT 2003

 Dear all, =0D
3 Computers are linked together with cross over cable and computer B is t=
router. =0D
Computer A - Starlight Video Server(Solaris) =0D
- =0D
Computer B - Iptables(Linux) =0D
- eth0 - =0D
- eth1 - =0D
Computer C - Video receiver(Windows) =0D
- =0D
First =0D
# echo "1" > /proc/sys/net/ipv4/ip_forward =0D
it works fine, video receiver can receive the video from =0D
The purpose for using iptables is that Internet use can get access our vi=
server, also our video server can be protected by iptables. =0D
Second =0D
modprobe iptables =0D
for TABLE in filter nat mangle; do =0D
iptables -t $TABLE -F =0D
iptables -t $TABLE -X =0D
done; =0D
iptables -t nat -A PREROUTING -p udp --dport 1911 -i eth1 -j \ =0D
DAT --to 1911 =0D
iptables -A FORWARD -p udp --dport 1911 -d --j ACCEPT =0D
Video receiver can receive the video, but when we investigate the packets=
into video receiver. =0D
Source IP: =0D
Destination IP: 1069 =0D
Protocol: UDP =0D
Packet Len: 1.46KB =0D
Data Len: 1.42KB =0D
Third, we execute one more line in order to change the source IP =0D
# iptables -nat -A POSTROUTING -o eth1 -j \ =0D
SNAT --to =0D
But the result doesn't change, we still get packet with source IP. 192.16=
11. =0D
I'd be grateful for any helps or advices. =0D
Paul Yip =0D

More information about the samba mailing list