Hi @filippo_carletti, thanks for your reply, this command is only for eth0, right?
Nethserver have this config:
green: eth0 ip 192.168.0.1
red: eth1 ip 127.0.0.1
the commands FOR GREEN is:
iptables -t nat -A PREROUTING -i eth0 -p gre -j DNAT --to-destination 192.168.0.1
the commands FOR RED is:
iptables -t nat -A PREROUTING -i eth1 -p gre -j DNAT --to-destination 127.0.0.1
something is missing, for example, the inverse command, du u understand?
Regards,
Sgolastra.
Hi @LayLow thank you for your reply, in the past have tried configuration suggested by you, but it does not work like that, however, thanks for your help, thank very much.
Hi @mrmarkuz, thank you for reply ;-), i have read and test with a ref. of page by the PPTP Server Running Behind your Firewall.
My net area is an example:
green eth0 as ip andress 192.1.1.1 with alias ip 192.3.3.1
red eth1 192.0.0.1
winzoz pptp server test is: 192.3.3.100
external ip: 127.0.0.1
I have setup in this mode:
/etc/shorewall/rules:
###################################################################################################################################################################################### #ACTION SOURCE DEST PROTO DEST SOURCE ORIGINAL RATE USER/ MARK CONNLIMIT TIME HEADERS SWITCH
PORT PORT(S) DEST LIMIT GROUP
#SECTION ALL
SECTION ESTABLISHED
?SECTION ESTABLISHED
DNAT net loc:192.3.3.100 tcp 1723 - 127.0.0.1
DNAT net loc:192.3.3.100 47 - - 127.0.0.1
SECTION RELATED
?SECTION RELATED
SECTION NEW
?SECTION NEW
…
when i restart service shorewall the error is:
Starting shorewall: ERROR: NAT rules are only allowed in the NEW section /etc/shorewall/rules (line 29)
[FAILED] can u help me please?