Ray

Sharing is a kind of learning


  • Startseite

  • Archiv6

  • Kategorien7

  • Schlagwörter9

  • Suche

How to Disable/Enable IP forwarding in Linux

Veröffentlicht am 2019-11-19 | in Linux | Kommentare: | Aufrufe:

Contents

  1. Current IP forwarding status
  2. Disable IP forwarding
  3. Enable IP forwarding
    This article describes how to Disable or Enable an IP forwarding in Linux.

    Current IP forwarding status

    Read a current state of IP forwarding:
    ‘’’# sysctl net.ipv4.ip_forward
    net.ipv4.ip_forward = 1’’’
    Currently, the output number 1 indicates that the IP forwarding is enabled. The above value is read from the Linux proc file system and more precisely from the actual file /proc/sys/net/ipv4/ip_forward file:
    ‘’’# cat /proc/sys/net/ipv4/ip_forward
    1’’’

    Disable IP forwarding

    To disable IP forwarding on a running Linux system run:
    ‘’’# sysctl -w net.ipv4.ip_forward=0
    net.ipv4.ip_forward = 0’’’
    The above command actually writes number 0 into the above mentioned file /proc/sys/net/ipv4/ip_forward. If from some reason the above command fails you can attempt to disable the IP forwarding manually by:
    ‘’’echo 0 > /proc/sys/net/ipv4/ip_forward’’’
    The above change is not reboot persistent. To permanently disable the IP forwarding on your Linux system edit /etc/sysctl.conf and add the following line:
    ‘’’net.ipv4.ip_forward = 0’’’
    SUBSCRIBE TO NEWSLETTER
    Subscribe to Linux Career NEWSLETTER and receive latest Linux news, jobs, career advice and tutorials.

    Enable IP forwarding

    The procedure to enable IP forwarding in Linux is the same as the above procedure to disable it, but instead, we use number 1 to turn IP forwarding ON.
    ‘’’# sysctl -w net.ipv4.ip_forward=1
    net.ipv4.ip_forward = 1’’’
    or alternatively:
    ‘echo 1 > /proc/sys/net/ipv4/ip_forward’
    To make the change permanent insert or edit the following line in edit /etc/sysctl.conf:
    ‘net.ipv4.ip_forward = 1’

Mobileiron 虚拟机迁移后IP地址失效解决方法

Veröffentlicht am 2019-07-11 | in Mobileiron | Kommentare: | Aufrufe:

Product:Mobileiron Core、Sentry
Version:All
Platform:Virtual System

Symptoms

在虚拟机平台对Mobileiron服务器克隆或迁移后,会发现克隆后的服务器启动后无法通过网络正常访问。

Cause

该问题是由于克隆或迁移后的虚拟机MAC地址已经自动更新,但服务器记录的网卡配置信息绑定了之前旧的MAC地址,这导致服务器会将该网卡应用新的网卡配置信息,默认为空的IP地址。进而出现了克隆后的服务器启动后无法通过网络正常访问的问题。

Weiterlesen »

SmartConsole无法看到日志

Veröffentlicht am 2019-05-23 | in CheckPoint . SmartConsole | Kommentare: | Aufrufe:

Symptoms

该问题发生在CheckPoint Security Management Server数据库迁移并升级至R80.10后,SmartConsole无法看到日志。
通过tcpdump -i any port 257命令在防火墙上抓包可以看到防火墙有发送日志出来,但接收地址不正确。

Weiterlesen »

CheckPoint Upgrade a VSX with Non-DMI configuration is not supported

Veröffentlicht am 2019-05-22 | Bearbeitet am 2019-05-23 | in CheckPoint . VSX | Kommentare: | Aufrufe:

Symptoms

When using the installer to upgrade the VSX firewall, use theinstaller verify <number>command to verify the installation package and get the following error:

installer verify 1
Info: Initiating verify of Check_Point_R80.20_T101_Fresh_Install_and_Upgrade_Security_Gateway.tgz…
Interactive mode is enabled. Press CTRL + C to exit (this will not stop the operation)
Result: Verifier results Package: R80.20 Fresh Install and Upgrade for Security Gateway and Standalone Clean Install: Installation is allowed. Upgrade: Upgrade a VSX with Non-DMI configuration is not supported.

Weiterlesen »

简单通俗的理解和配置SwitchyOmega的虚情景模式

Veröffentlicht am 2019-05-11 | in Proxy | Kommentare: | Aufrufe:

SwitchyOmega 的新版本增加了虚情景模式,该模式可以让我们更加高效的切换和配置自动代理。
但是配置界面中的介绍让很多人一头雾水,官方的介绍是这么写的:

虚情景模式
虚情景模式可以作为某个其他情景模式使用,并可以根据需要更改对象。一般用在自动切换中,这样就可以一次性更改多个条件对应的代理。

Weiterlesen »

Configure Auto Reply SMS BY Google Voice

Veröffentlicht am 2019-05-10 | in Google | Kommentare: | Aufrufe:

Add the Email filter in the Gmail

  1. Create a filter (any text sent to a google voice number goes to your gmail with the following address appended to it)
  2. Matches: from:(@txt.voice.google.com)
  3. Do this: Skip Inbox, Apply label “autoreply”
Weiterlesen »

Shaun Ray

The blog of Shaun Ray
6 Artikel
7 Kategorien
9 schlagwörter
© 2019 Shaun Ray