File: nicinit.sh

package info (click to toggle)
libreswan 5.2-2.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 81,632 kB
  • sloc: ansic: 129,988; sh: 32,018; xml: 20,646; python: 10,303; makefile: 3,022; javascript: 1,506; sed: 574; yacc: 511; perl: 264; awk: 52
file content (8 lines) | stat: -rw-r--r-- 334 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
#!/bin/sh
# setup port/protocol forward to east
iptables -t nat -I PREROUTING -p udp -d 192.1.3.254 --dport 500 -j DNAT --to-destination 192.1.2.23
iptables -t nat -I PREROUTING -p esp -d 192.1.3.254 -j DNAT --to-destination 192.1.2.23
# Display the table, so we know it is correct.
iptables -t nat -L
echo "initdone"
: ==== end ====