From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Glynn S. Condez" Date: Wed, 13 Feb 2002 02:25:55 +0000 Subject: [LARTC] Help with GRE Tunneling MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_00D4_01C1B478.D1BA3080" Message-Id: List-Id: References: In-Reply-To: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_00D4_01C1B478.D1BA3080 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hello everyone, I have a working pptp vpn ( gre tunneling ). I setup = samba server on both linux server, in network A, i could see the network = neighborhood with samba but i couldnt see the network of the otherside = but I could open the samba server in Network B and also the workstation = using \\networkB\share. I'd like to ask if its possible that im going to = use the same subnet of the network B, so that both Network A and Network = B are in the same subnet. Here is my config in pptp vpn on both = networks. if its possible can anyone correct the config? #Network A /sbin/echo 1 > /proc/sys/net/ipv4/ip_forward /sbin/ipchains -A forward -s 192.168.1.0/24 -j MASQ /sbin/ipchains -A forward -s 192.168.2.0/24 -j MASQ /sbin/insmod ip_gre /sbin/ip tunnel add alas mode gre remote x.x.x.x local y.y.y.y ttl 255 /sbin/ip link set netb up /sbin/ip addr add 192.168.1.1 dev netb /sbin/ip route add 192.168.2.0/24 dev netb -------------------------------------------------------------------------= ----- #Network B /sbin/echo 1 > /proc/sys/net/ipv4/ip_forward /sbin/ipchains -A forward -s 192.168.2.0/24 -j MASQ /sbin/ipchains -A forward -s 192.168.1.0/24 -j MASQ /sbin/insmod ip_gre /sbin/ip tunnel add text mode gre remote y.y.y.y local x.x.x.x ttl 255 /sbin/ip link set neta up /sbin/ip addr add 192.168.2.1 dev neta /sbin/ip route add 192.168.1.0/24 dev neta ------=_NextPart_000_00D4_01C1B478.D1BA3080 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
hello everyone, I have a working pptp = vpn ( gre=20 tunneling ). I setup samba server on both linux server, in network A, i = could=20 see the network neighborhood with samba but i couldnt see the network of = the=20 otherside but I could open the samba server in Network B and also the=20 workstation using \\networkB\share. I'd=20 like to ask if its possible that im going to use the same subnet of the = network=20 B, so that both Network A and Network B are in the same subnet. Here is = my=20 config in pptp vpn on both networks. if its possible can anyone correct = the=20 config?
 
#Network A
/sbin/echo 1 >=20 /proc/sys/net/ipv4/ip_forward
/sbin/ipchains -A forward -s = 192.168.1.0/24 -j=20 MASQ
/sbin/ipchains -A forward -s 192.168.2.0/24 -j MASQ
 
/sbin/insmod ip_gre
/sbin/ip tunnel = add alas=20 mode gre remote x.x.x.x local y.y.y.y ttl 255
/sbin/ip link set netb=20 up
/sbin/ip addr add 192.168.1.1 dev netb
/sbin/ip route add=20 192.168.2.0/24 dev netb
----------------------------------------------------------------= --------------
#Network B
/sbin/echo 1 >=20 /proc/sys/net/ipv4/ip_forward
/sbin/ipchains -A forward -s = 192.168.2.0/24 -j=20 MASQ
/sbin/ipchains -A forward -s 192.168.1.0/24 -j MASQ
 
/sbin/insmod ip_gre
/sbin/ip tunnel = add text=20 mode gre remote y.y.y.y local x.x.x.x ttl 255
/sbin/ip link set neta=20 up
/sbin/ip addr add 192.168.2.1 dev neta
/sbin/ip route add=20 192.168.1.0/24 dev neta
 
 
------=_NextPart_000_00D4_01C1B478.D1BA3080-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/