Astaro User Bulletin Board
Go Back   Astaro User Bulletin Board > Astaro Gateway Products > Network Security: Firewall, NAT, QoS, IPS and more

Welcome to the Astaro User Bulletin Board.
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-15-2004, 10:40 AM
Junior Member
 
Join Date: Aug 2003
Posts: 10
Default NAT limitation ? - Require \"No NAT\" rule

Using ASL V5.012 - I understand that making changes to the Astaro scripts or OS are not supported, but I can't find any other way of doing this. Basically I need to configure a "no nat" rule.

My network looks like this:


Internal - E0 (168.182.202.32/29) -- ASTARO FW -- (168.182.202.40/27) E1 - dmz
|
|
(206.9.139.239) External - ppp0


I only want to NAT traffic going from the Internal network (e0) to the Internet (ppp0). Traffic from the Internal network to the dmz must not be nat'd. I can't find a way to do this from Webadmin (as you can't specify the outbound interface - ppp0). The only way I could resolve this, was by adding the following command on the cli:

/usr/sbin/iptables -t nat -A POSTROUTING -s 168.182.202.32/29 -o ppp0 -j SNAT --to 206.9.139.239

Is there a startup script where I could add this line, so it is retained after a reboot and doesn't get deleted by Middleware ?

Thanks for your help
Reply With Quote
  #2 (permalink)  
Old 07-15-2004, 12:00 PM
Senior Member
 
Join Date: Mar 2001
Posts: 184
Default Re: NAT limitation ? - Require \"No NAT\" rule

No big deal - [Network] - [NAT/MAsquerading] you only have to add an new "Masquerading" rule with Network=dmz and Interface=ppp0 - thatīs it!

This does NOT imply that traffic from the dmz to the internal network is "masqueraded" as well...

techno.kid
Reply With Quote
  #3 (permalink)  
Old 07-15-2004, 01:34 PM
Junior Member
 
Join Date: Aug 2003
Posts: 10
Default Re: NAT limitation ? - Require \"No NAT\" rule

Thanks tk for that tip. Unfortunately I've already tried that option with little sucess. To be honest my astaro configuration is not as simple as depicted in the diagram - I use several vlans and secondary addresses and require more granularity on what protocols should be nat'd. When I attempted Masquerding, I had several conflicts and had more luck with SNAT.

Thanks anyway.
Reply With Quote
  #4 (permalink)  
Old 07-15-2004, 04:05 PM
Wizard
 
Join Date: Jul 2003
Location: U.S.
Posts: 1,265
Default Re: NAT limitation ? - Require \"No NAT\" rule

As techno kid (not Cisco kid?) rightly points out, it is always preferable to try and make it work from GUI for reasons of ongoing support. But if you have to, Search for iptables.local...
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:13 AM.

 

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.


These pages are specifically maintained for the discussion of firewall issues within the Open Source community, and might already reflect new alpha/beta releases under development. Please refer to our product specifications for the functionality of the actual release. Discussions of new/enhanced functionality does not constitute a commitment of Astaro, to integrate this functionality into future releases. issues within the Open Source community, and might already reflect new alpha/beta releases under development. Please refer to our product specifications for the functionality of the actual release. Discussions of new/enhanced functionality does not constitute a commitment of Astaro, to integrate this functionality into future releases.