Robert Grizilo
2017-01-30 20:16:50 UTC
My setup:
+-------------------------------------------+
| |
| 5.6.7.8 (some remote server) |
| |
| INTERNET |
| |
| eth0 (1.2.3.4/24) eth0:0 (1.2.3.5/24) |
| |
+-----------------+-------------------------+
|
|
+--------+--------+
| SHOREWALL |
+--+---+---+------+
| | |
| | +- eth1 ofc - 192.168.10.1/24
| |
| +- eth2 vip - 10.0.0.194/30 <---------------------------->
10.0.0.193/30
|
+- eth3 hom - 192.168.0.1/24
+-----------------+ +--------------+ +--------------+
| :interfaces | | :zones | | :masq |
| net eth0 detect | | fw firewall | | eth0 eth1 |
| ofc eth1 detect | | net ipv4 | | eth0 eth3 |
| vip eth2 detect | | ofc ipv4 | +--------------+
| hom eth3 detect | | vip ipv4 |
+-----------------+ | hom ipv4 |
+--------------+
+---------------------+ +------------------------------------------+
| :policy | | :rules |
| fw all ACCEPT | | ACCPET net fw:1.2.3.4 tcp 22 - - 3/min:9 |
| ofc all ACCEPT | +------------------------------------------+
| hom fw ACCEPT |
| hom net ACCPET |
| |
| net all DROP info |
| all all REJECT info |
+---------------------+
i need:
on 1.2.3.5 incoming only from 5.6.7.8 is allowed
all proto comming from 5.6.7.8 to 1.2.3.5 snat as 10.0.0.194 and send it to
10.0.0.193
all proto comming from 10.0.0.193 to 10.0.0.194 snat as 1.2.3.5 and send it to
5.6.7.8
(and if possible when restarting shorewall dont break active connections between
them)
thnx!
i'we searched alot, but (probably) don't know how to ask
+-------------------------------------------+
| |
| 5.6.7.8 (some remote server) |
| |
| INTERNET |
| |
| eth0 (1.2.3.4/24) eth0:0 (1.2.3.5/24) |
| |
+-----------------+-------------------------+
|
|
+--------+--------+
| SHOREWALL |
+--+---+---+------+
| | |
| | +- eth1 ofc - 192.168.10.1/24
| |
| +- eth2 vip - 10.0.0.194/30 <---------------------------->
10.0.0.193/30
|
+- eth3 hom - 192.168.0.1/24
+-----------------+ +--------------+ +--------------+
| :interfaces | | :zones | | :masq |
| net eth0 detect | | fw firewall | | eth0 eth1 |
| ofc eth1 detect | | net ipv4 | | eth0 eth3 |
| vip eth2 detect | | ofc ipv4 | +--------------+
| hom eth3 detect | | vip ipv4 |
+-----------------+ | hom ipv4 |
+--------------+
+---------------------+ +------------------------------------------+
| :policy | | :rules |
| fw all ACCEPT | | ACCPET net fw:1.2.3.4 tcp 22 - - 3/min:9 |
| ofc all ACCEPT | +------------------------------------------+
| hom fw ACCEPT |
| hom net ACCPET |
| |
| net all DROP info |
| all all REJECT info |
+---------------------+
i need:
on 1.2.3.5 incoming only from 5.6.7.8 is allowed
all proto comming from 5.6.7.8 to 1.2.3.5 snat as 10.0.0.194 and send it to
10.0.0.193
all proto comming from 10.0.0.193 to 10.0.0.194 snat as 1.2.3.5 and send it to
5.6.7.8
(and if possible when restarting shorewall dont break active connections between
them)
thnx!
i'we searched alot, but (probably) don't know how to ask