Помогите настроить iptables port forwarding

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Оборудование на основе Atheros WiSOC
Author Message
@!!ex
DD-WRT Novice


Joined: 05 Jan 2010
Posts: 11

PostPosted: Thu Apr 22, 2010 15:54    Post subject: Помогите настроить iptables port forwarding Reply with quote
iptables -t nat -i ppp0 -I PREROUTING -p tcp --dport 3000 -j DNAT --to 192.168.0.99:3000
iptables -I FORWARD -p tcp -d 192.168.0.99 --dport 3000 -j ACCEPT

Это для TCP/IP. Все работает как надо.
Но мне сейчас нужно UDP протолкнуть. Простая замена tcp на udp не помогает.
Как правильно делать?
Sponsor
SaintReset
DD-WRT Guru


Joined: 13 Jan 2009
Posts: 1732

PostPosted: Fri Apr 23, 2010 6:29    Post subject: Reply with quote
-p udp в обоих правилах помогает Smile Иначе быть не может.
_________________
I can change this world, but G*d doesn`t give me the source (c)
Gooooглю за деньги
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Оборудование на основе Atheros WiSOC All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum