Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel panic при dnat'е с одного порта на другой.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
akshimassar
n00b
n00b


Joined: 01 Dec 2007
Posts: 44
Location: Moscow, Russia

PostPosted: Sat Jan 19, 2008 5:42 pm    Post subject: Kernel panic при dnat'е с одного порта на другой. Reply with quote

Только что обнаружил проблему. Недавно я перенес фтп на порт 21 и добавил в iptables правило
Code:
$IPTABLES -t nat -A PREROUTING -i $EXT_IF -p tcp --dport 24 -j DNAT --to-destination $EXT_IP:$FTP
Уточню, что я подключаюсь через PPPoE по которому мне выдается все время один и тот же айпи.
При обращении на 24 порт машина выдавала кернел паник. До того все работало (когда фтп бы на порту 24 и форвард был с 21го...)
Итого, раньеш было:
1ый вариант: ftp слушает на порту 24, стоит forwarding c 21 на 24ый.
Теперь сделал:
2ой вариант: ftp слушает на порту 21, стоит forwarding c 24 на 21ый.
Конфиг ядра
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Page 1 of 1

 
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