LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-01-2018, 05:43 PM   #1
Detector.up
LQ Newbie
 
Registered: Apr 2018
Posts: 1

Rep: Reputation: Disabled
Firewalld MAquerade SNAT static for DMZ


I switched from iptables to firewalld
Network lan dmz 192.168.1.0/24 interface ens36
POOL ISP Network wan 200.20.135.0/28 gw 200.20/135.14 interface ens35

WEBSERVER_DMZ 192.168.1.2/24 <-->200.20.135.2
FTPSERVER_DMZ 192.168.1.3/24 <-->200.20.135.3

IPTABLES I used
iptables -t nat -A POSTROUTING -o ens35 -s 192.168.1.2 -j SNAT --to 200.20.135.2

FIREWALLD: HOW To EXECUTEwith SNAT for one specific IP public!

firewall-cmd --zone=external --add-masquerade --permanent
firewall-cmd --permanent --zone=external --add-rich-rule="rule family=ipv4 source address=192.168.1.0/24 masquerade"
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
The router with the function of DMZ ? What is DMZ? wertum Linux - Networking 3 08-10-2010 04:05 AM
question about iptables (DMZ machine connect to other DMZ machine 's publuic IP) wingmak Linux - Security 1 01-20-2007 04:01 PM
Vampire - the maquerade (bloodlines), KotOR 2 and bard's tale mat_uk111 Linux - Games 1 01-07-2005 01:27 AM
Static NAT / DMZ / VPN question Funky D Linux - Networking 1 10-22-2004 07:17 AM
shorewall with 2 external static ips and DMZ gjmwalsh Linux - Networking 0 05-10-2004 09:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration