File: nic-internet

package info (click to toggle)
libreswan 5.2-2.4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 81,656 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: -rwxr-xr-x 240 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
#!/bin/sh

dhclient eth2
# provide NAT
iptables -t nat -I POSTROUTING -o eth2 -j MASQUERADE
# Redirect DNS to a real public server
iptables -t nat -I PREROUTING -d 192.1.2.254 -j DNAT --to-destination 8.8.8.8
echo "internet uplink enabled"