*SOLVED* port 3754 routing udp & tcp - doesn't work [message #24749] |
Sun, 09 December 2007 14:03 |
Kutschka
Messages: 24 Registered: February 2007
|
Junior Member |
|
|
[Editid and translated to english]
Hello,
I have installed on a VE (has local IP:192.168.1.8) Ventrilo .. Used are port 3754 (UDP and TCP)..
But ıt does not work...
What I did:
On creation VE
vzctl set 1005 --iptables iptable_nat --save;
emacs /etc/init.d/vz
Added below:
iptables -t nat -P PREROUTING ACCEPT
//- How to provide access for VE to Internet
iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to MY_PUBLIC_IP
//- How to provide access from Internet to a VE
iptables -t nat -P PREROUTING ACCEPT
iptables -t nat -A PREROUTING -p tcp -d 192.168.1.8 --dport
3784 -i eth0 -j DNAT --to-destination MY_PUBLIC_IP:3784
iptables -t nat -A PREROUTING -p udp -d 192.168.1.8 --dport
3784 -i eth0 -j DNAT --to-destination MY_PUBLIC_IP:3784
iptables -t nat -A PREROUTING -p TCP --dport 3784
-j DNAT --to-destination 192.168.1.8:3784
- In dem VE
/sbin/iptables -t nat -A POSTROUTING -s ! 192.168.1.8
-o venet0 -j SNAT --to-source 192.168.1.8
Can anyone help me, what is here wrong?
Thank you...
Kutschka
[Updated on: Fri, 14 December 2007 17:35] Report message to a moderator
|
|
|
|
|
|
|
|
Re: port 3754 routing udp & tcp - doesn't work [message #25107 is a reply to message #24749] |
Fri, 14 December 2007 14:24 |
Sten
Messages: 5 Registered: December 2007
|
Junior Member |
|
|
I think the addresses are vice versa
(you want packages that are about to reach HN, ie. their destination is MY_PUBLIC_IP, to be redirected to VE), it should be:
iptables -t nat -A PREROUTING -p tcp -d MY_PUBLIC_IP --dport
3784 -i eth0 -j DNAT --to-destination 192.168.1.8:3784
xor rsi,rsi
lodsb
Segmentation fault
E-mail returned to sender – Insufficient voltage
[Updated on: Fri, 14 December 2007 14:33] Report message to a moderator
|
|
|
|