Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


gre tunnel help
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

gre tunnel help

emtecroemtecro Member

Hello all,

I have problems with gre tunnel. I followed buyvm tut and was working for ~8 days and today it is not responding gre tunnel on my game servers. The vps was not restarted but it stopped working. Then I tryed to add again command but nothing. Then I added to rc.local all comands and restarted but still not working. Also tryed to ping 192.168.168.2 but nothing...

Can someone help maybe?

This is for gre vps

echo 'net.ipv4.ip_forward=1'>>/etc/sysctl.conf sysctl -p /etc/sysctl.conf iptunnel add gre1 mode gre local 51.254.xxx.xxx remote 195.154.xxx.xxx ttl 255 ip addr add 192.168.10.2/30 dev gre1 ip link set gre1 up iptables -t nat -A POSTROUTING -s 192.168.10.0/30 -j SNAT --to-source 51.254.xxx.xxx

Other server

iptunnel add gre1 mode gre local 195.154.xxx.xxx remote 51.254.xxx.xxx ttl 255 ip addr add 192.168.10.1/30 dev gre1 ip link set gre1 up echo '101 ATGRE'>>/etc/iproute2/rt_tables ip rule add from 192.168.10.0/30 table ATGRE ip route add default via 192.168.10.2 table ATGRE

Ports are opened

GamePanel - Started server on 192.168.10.1:7777, with maxplayers: 50 lanmode is OFF.

And it should start on 51.254.xxx.xxx:7777

Comments

  • AlexBarakovAlexBarakov Patron Provider, Veteran

    ifconfig output?

  • emtecroemtecro Member
    edited March 2016

    AlexBarakov said: ifconfig output

    gre1      Link encap:UNSPEC  HWaddr 33-FE-54-0E-00-00-41-8C-00-00-00-00-00-00-00-00
              inet addr:192.168.10.2  P-t-P:192.168.10.2  Mask:255.255.255.252
              UP POINTOPOINT RUNNING NOARP  MTU:1476  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:298 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:0 (0.0 b)  TX bytes:12914 (12.6 KiB)
    
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
    
    venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
              inet addr:127.0.0.1  P-t-P:127.0.0.1  Bcast:0.0.0.0  Mask:255.255.255.255
              inet6 addr: 2001:41d0:a:1a3b::27/128 Scope:Global
              UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
              RX packets:2437 errors:0 dropped:0 overruns:0 frame:0
              TX packets:2000 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:128133 (125.1 KiB)  TX bytes:140253 (136.9 KiB)
    
    venet0:0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
              inet addr:51.254.xxx.xxx  P-t-P:51.254.xxx.xxx  Bcast:51.254.xxx.xxx  Mask:255.255.255.255
              UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
    

    Other server

    eth0      Link encap:Ethernet  HWaddr bc:30:5b:e4:4b:de
              inet addr:195.154.xxx.xxx  Bcast:195.154.221.255  Mask:255.255.255.0
              inet6 addr: fe80::be30:5bff:fee4:4bde/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:215655455 errors:0 dropped:72238 overruns:0 frame:0
              TX packets:164881938 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:82864412494 (77.1 GiB)  TX bytes:63126554465 (58.7 GiB)
              Interrupt:16 Memory:da000000-da012800
    
    gre1      Link encap:UNSPEC  HWaddr C3-9A-DD-33-00-00-00-00-00-00-00-00-00-00-00                                                                                                                                                             -00
              inet addr:192.168.10.1  P-t-P:192.168.10.1  Mask:255.255.255.252
              inet6 addr: fe80::200:5efe:c39a:dd33/64 Scope:Link
              UP POINTOPOINT RUNNING NOARP  MTU:1476  Metric:1
              RX packets:1661914 errors:0 dropped:0 overruns:0 frame:0
              TX packets:1242051 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:117638619 (112.1 MiB)  TX bytes:95857611 (91.4 MiB)
    
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:132 errors:0 dropped:0 overruns:0 frame:0
              TX packets:132 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:11223 (10.9 KiB)  TX bytes:11223 (10.9 KiB)
    
  • I think I found issue its not accepting port forward iptables then I added again also didnt accepted then i reinnstalled tryed again to ads ports but iptables dont accept it.
    Any solution ?

  • can you show output of iptables on the gre vps? iptables -t nat -L -v -n and iptables -L -v -n

  • Fixed it was problem with provider he disabled firewall and its working now.
    Can be closed

  • IshaqIshaq Member

    As requested.

This discussion has been closed.