Hi,
first of all my primary target are reached.: Controll the PPtP on a specific NIC.
------------------------------------------
Here is my Configuration:
1.NIC eth0 10.0.10.1
2.NIC eth0 192.168.130.1
Rules PPTP Pool any any any Allow
------------------------------------------
Only access on NIC 1 by PPTP:
as root
iptables -L -n --line-numbers | grep 1723
" 3 ACCEPT tcp -- 0.0.0.0/0 tcp spts:1024:655535 dpt: 1723"
iptables -R AUTO_INPUT 12
iptables -I AUTO_INPUT 3 -p tcp -i eth0 -s 0.0.0.0/0 --sport 1024:65535 -d 10.0.10.1/32 --dport 1723 -j ACCEPT
This works fine (thanks to Jim.M) but i want to put this command lines in a script and run it automatically on every startup or every change of the AUTO_INPUT chain. In this thread the whole problem is given.:
https://community.sophos.com/products/unified-threat-management/astaroorg/f/68/t/60757
thanks for help
laslo
This thread was automatically locked due to age.