~ubuntu-branches/ubuntu/lucid/anytun/lucid

« back to all changes in this revision

Viewing changes to etc/anytun/client2/post-up.sh

  • Committer: Bazaar Package Importer
  • Author(s): Michael Prokop
  • Date: 2009-12-14 02:08:25 UTC
  • Revision ID: james.westby@ubuntu.com-20091214020825-ntyi58y4wvsaglhi
Tags: upstream-0.3.2
ImportĀ upstreamĀ versionĀ 0.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
ip link set dev $1 up
 
4
ip link set dev $1 mtu 1400
 
5
ip addr add dev $1 192.168.123.2/24
 
6
ip addr add dev $1 fec0::2/64
 
7
 
 
8
# disable ICMP redirects as they don't work within the tunnel
 
9
echo 0 > /proc/sys/net/ipv4/conf/$1/send_redirects
 
10
echo 0 > /proc/sys/net/ipv4/conf/$1/accept_redirects
 
11
 
 
12
exit 0