File: antispoofppp-down-ipchains

package info (click to toggle)
firewall-easy 0.30-5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 320 kB
  • ctags: 5
  • sloc: sh: 899; makefile: 42; perl: 38
file content (17 lines) | stat: -rwxr-xr-x 590 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
#	antispoofppp-down-ipchains 0.01
#
#	Quitar del cortafuegos regla antispoof a la IP dinamica asignada al PPP
#	Remove from firewall antispoof rule to the dynamic IP asigned to PPP
#

PATH=/sbin:/usr/sbin:/usr/lib/firewall-easy:/bin:/usr/bin
IFACE_INET=$PPP_IFACE
IP_DINAMICA=$PPP_LOCAL


# QUITAR LA REGLA 1 ANTISPOOF DE IP DINAMICA ASIGNADA POR PROVEEDOR ISP
# No aceptar entradas de inet reclamando ser "la IP asignada" (spoof)

# Remove input rule       denying in PPP iface   from PPP IP    to ANYWHERE
echorun ipchains -D input -j DENY -i $IFACE_INET -s $IP_DINAMICA -d 0/0