Niclas Andersson
2002-Sep-22 21:05 UTC
[Shorewall-users] Translate iptables string to shorewall
--=====================_182890734==.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed Hello all I am having a bit of a problem getting filetransfers with MSN Messenger to work. My brother and I have been going for that for some time now and we have succeded to send a file in both ways now. But I had to manually enter a string to get it to work. My question is now how to translate that string to shorewall "format" The string is as follows... iptables -A PREROUTING -t nat -p tcp --dest 192.168.4.1 --dport 6891:6900 -j DNAT --to 213.67.20.71 Best of regards and hope, Niclas Andersson --=====================_182890734==.ALT Content-Type: text/html; charset="us-ascii" <html> <font face="MS Shell Dlg, Geneva">Hello all<br><br> I am having a bit of a problem getting filetransfers with MSN Messenger to work. My brother and I have been going for that for some time now and we have succeded to send a file in both ways now. But I had to manually enter a string to get it to work.<br><br> My question is now how to translate that string to shorewall "format" The string is as follows...<br><br> iptables -A PREROUTING -t nat -p tcp --dest 192.168.4.1 --dport 6891:6900 -j DNAT --to 213.67.20.71<br><br> Best of regards and hope,<br><br> Niclas Andersson</font><br> </html> --=====================_182890734==.ALT--
This is a cryptographically signed message in MIME format. --------------ms010801070005000300010605 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Niclas Andersson wrote:> Hello all > > I am having a bit of a problem getting filetransfers with MSN Messenger > to work. My brother and I have been going for that for some time now and > we have succeded to send a file in both ways now. But I had to manually > enter a string to get it to work. > > My question is now how to translate that string to shorewall "format" > The string is as follows... > > iptables -A PREROUTING -t nat -p tcp --dest 192.168.4.1 --dport > 6891:6900 -j DNAT --to 213.67.20.71 >Why don''t you just put that rule in /etc/shorewall/start ? -Tom -- Tom Eastep \ Shorewall - iptables made easy AIM: tmeastep \ http://www.shorewall.net ICQ: #60745924 \ teastep@shorewall.net --------------ms010801070005000300010605 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACA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YqNkQ9+foOdIaEFtWxTdnz1X/KElNGsQNTS1uugJGhrHVKt O19ks0+jPU5yxkoAAAAAAAA--------------ms010801070005000300010605--
Niclas Andersson
2002-Sep-23 06:32 UTC
[Shorewall-users] Translate iptables string to shorewall
Hello again. I guess it''s too obvious to think about.... Thank you //Niclas At 00:49 2002-09-23, Tom Eastep wrote:>Niclas Andersson wrote: >>Hello all >>I am having a bit of a problem getting filetransfers with MSN Messenger >>to work. My brother and I have been going for that for some time now and >>we have succeded to send a file in both ways now. But I had to manually >>enter a string to get it to work. >>My question is now how to translate that string to shorewall "format" The >>string is as follows... >>iptables -A PREROUTING -t nat -p tcp --dest 192.168.4.1 --dport 6891:6900 >>-j DNAT --to 213.67.20.71 > >Why don''t you just put that rule in /etc/shorewall/start ? > >-Tom >-- >Tom Eastep \ Shorewall - iptables made easy >AIM: tmeastep \ http://www.shorewall.net >ICQ: #60745924 \ teastep@shorewall.net > >